FilePathSeparatorMatch.hpp 663 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2022-05-11
  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
  13. {
  14. namespace std
  15. {
  16. namespace io
  17. {
  18. struct FilePathSeparatorMatch
  19. {
  20. bool operator()(char _char) const
  21. {
  22. return _char == ls::std::io::FilePathSeparator::getWindowsFilePathSeparator() || _char == ls::std::io::FilePathSeparator::getUnixFilePathSeparator();
  23. }
  24. };
  25. }
  26. }
  27. }
  28. #endif