| 11110 | } |
| 11111 | |
| 11112 | bool startsWith( std::string const& s, std::string const& prefix ) { |
| 11113 | return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin()); |
| 11114 | } |
| 11115 | bool startsWith( std::string const& s, char prefix ) { |
| 11116 | return !s.empty() && s[0] == prefix; |
| 11117 | } |
no test coverage detected