FilePathSeparatorMatch.cpp 666 B

1234567891011121314151617181920
  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-05
  7. *
  8. * */
  9. #include <ls-std/io/FilePathSeparator.hpp>
  10. #include <ls-std/io/FilePathSeparatorMatch.hpp>
  11. ls::std::io::FilePathSeparatorMatch::FilePathSeparatorMatch() = default;
  12. ls::std::io::FilePathSeparatorMatch::~FilePathSeparatorMatch() = default;
  13. bool ls::std::io::FilePathSeparatorMatch::operator()(char _char) const
  14. {
  15. return _char == ls::std::io::FilePathSeparator::getWindowsFilePathSeparator() || _char == ls::std::io::FilePathSeparator::getUnixFilePathSeparator();
  16. }