NewLine.hpp 899 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Co-Author: Claude Sonnet 4.6 (LLM)
  4. * Company: Lynar Studios
  5. * E-Mail: webmaster@lynarstudios.com
  6. * Created: 2020-08-18
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_NEW_LINE_HPP
  11. #define LS_STD_NEW_LINE_HPP
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. #include <string>
  14. /*
  15. * @doc: class(name: 'NewLine', package: 'io')
  16. * @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.')
  17. * */
  18. namespace ls::standard::io
  19. {
  20. class LS_STD_DYNAMIC_GOAL NewLine
  21. {
  22. public:
  23. NewLine();
  24. ~NewLine();
  25. [[nodiscard]] static ::std::string get();
  26. [[nodiscard]] static ::std::string getUnixNewLine();
  27. [[nodiscard]] static ::std::string getWindowsNewLine();
  28. };
  29. }
  30. #endif