FilePathSeparatorMatch.cpp 743 B

123456789101112131415161718192021222324
  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: 2023-02-05
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #include <ls-std/io/FilePathSeparator.hpp>
  11. #include <ls-std/io/FilePathSeparatorMatch.hpp>
  12. using ls::standard::io::FilePathSeparator;
  13. using ls::standard::io::FilePathSeparatorMatch;
  14. FilePathSeparatorMatch::FilePathSeparatorMatch() = default;
  15. FilePathSeparatorMatch::~FilePathSeparatorMatch() = default;
  16. bool FilePathSeparatorMatch::operator()(const char _char) const
  17. {
  18. return _char == FilePathSeparator::getWindowsFilePathSeparator() || _char == FilePathSeparator::getUnixFilePathSeparator();
  19. }