NewLine.hpp 850 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-18
  6. * Changed: 2024-09-13
  7. *
  8. * */
  9. #ifndef LS_STD_NEW_LINE_HPP
  10. #define LS_STD_NEW_LINE_HPP
  11. #include <ls-std/os/dynamic-goal.hpp>
  12. #include <string>
  13. /*
  14. * @doc: class(name: 'NewLine', package: 'io')
  15. * @doc: io.NewLine.description('This class can be used as new line based on the preferred operating system. Currently, Windows and Unix-like operating systems are supported.')
  16. * */
  17. namespace ls::std::io
  18. {
  19. class LS_STD_DYNAMIC_GOAL NewLine
  20. {
  21. public:
  22. NewLine();
  23. ~NewLine();
  24. [[nodiscard]] static ::std::string get();
  25. [[nodiscard]] static ::std::string getUnixNewLine();
  26. [[nodiscard]] static ::std::string getWindowsNewLine();
  27. };
  28. }
  29. #endif