| 704 | } |
| 705 | |
| 706 | static bool IsPortableChar(char c) { |
| 707 | if (c == '\\' || c == '/') return false; |
| 708 | if (c == '|' || c == '<' || c == '>') return false; |
| 709 | if (c == ':' || c == '*' || c == '?') return false; |
| 710 | |
| 711 | return true; |
| 712 | } |
| 713 | |
| 714 | bool IsPortableFilename(const std::string& s) { |
| 715 | if (s.empty()) { |
no outgoing calls
no test coverage detected