| 11378 | } |
| 11379 | |
| 11380 | bool startsWith( std::string const& s, std::string const& prefix ) { |
| 11381 | return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin()); |
| 11382 | } |
| 11383 | bool startsWith( std::string const& s, char prefix ) { |
| 11384 | return !s.empty() && s[0] == prefix; |
| 11385 | } |
no test coverage detected