FilePathSeparatorMatch.hpp 669 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2023-02-04
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_PATH_MATCH_HPP
  10. #define LS_STD_FILE_PATH_MATCH_HPP
  11. #include "FilePathSeparator.hpp"
  12. namespace ls::std::io
  13. {
  14. struct FilePathSeparatorMatch // TODO: turn to class, rather than keeping it as struct
  15. {
  16. public:
  17. bool operator()(char _char) const
  18. {
  19. return _char == ls::std::io::FilePathSeparator::getWindowsFilePathSeparator() || _char == ls::std::io::FilePathSeparator::getUnixFilePathSeparator();
  20. }
  21. };
  22. }
  23. #endif