FilePathSeparatorMatch.cpp 683 B

1234567891011121314151617181920212223
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-05
  6. * Changed: 2023-02-23
  7. *
  8. * */
  9. #include <ls-std/io/FilePathSeparator.hpp>
  10. #include <ls-std/io/FilePathSeparatorMatch.hpp>
  11. using ls::std::io::FilePathSeparator;
  12. using ls::std::io::FilePathSeparatorMatch;
  13. FilePathSeparatorMatch::FilePathSeparatorMatch() = default;
  14. FilePathSeparatorMatch::~FilePathSeparatorMatch() = default;
  15. bool FilePathSeparatorMatch::operator()(char _char) const
  16. {
  17. return _char == FilePathSeparator::getWindowsFilePathSeparator() || _char == FilePathSeparator::getUnixFilePathSeparator();
  18. }