FilePathSeparator.hpp 940 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-15
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_FILE_PATH_SEPARATOR_HPP
  11. #define LS_STD_FILE_PATH_SEPARATOR_HPP
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. #include <string>
  14. /*
  15. * @doc: class(name: 'FilePathSeparator', package: 'io')
  16. * @doc: io.FilePathSeparator.description('This class represents the OS specific separator withing file paths on either Windows- or Unix-like operating systems.')
  17. * */
  18. namespace ls::standard::io
  19. {
  20. class LS_STD_DYNAMIC_GOAL FilePathSeparator
  21. {
  22. public:
  23. FilePathSeparator();
  24. ~FilePathSeparator();
  25. [[nodiscard]] static char get();
  26. [[nodiscard]] static char getUnixFilePathSeparator();
  27. [[nodiscard]] static char getWindowsFilePathSeparator();
  28. };
  29. }
  30. #endif