FilePathSeparatorMatch.hpp 714 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2022-07-01
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_PATH_MATCH_HPP
  10. #define LS_STD_FILE_PATH_MATCH_HPP
  11. #include "FilePathSeparator.hpp"
  12. #include <ls_std/os/dynamic_goal.hpp>
  13. namespace ls
  14. {
  15. namespace std
  16. {
  17. namespace io
  18. {
  19. struct DYNAMIC_GOAL FilePathSeparatorMatch
  20. {
  21. bool operator()(char _char) const
  22. {
  23. return _char == ls::std::io::FilePathSeparator::getWindowsFilePathSeparator() || _char == ls::std::io::FilePathSeparator::getUnixFilePathSeparator();
  24. }
  25. };
  26. }
  27. }
  28. }
  29. #endif