| 128 | } |
| 129 | |
| 130 | bool stringStartsWith(const std::string& str, const std::string& prefix) |
| 131 | { |
| 132 | if (str.length() >= prefix.length()) |
| 133 | { |
| 134 | return !str.compare(0, prefix.length(), prefix); |
| 135 | } |
| 136 | return false; |
| 137 | } |
| 138 | |
| 139 | bool stringEndsWith(const string& str, const string& suffix) |
| 140 | { |
no test coverage detected