| 188 | } |
| 189 | |
| 190 | bool hasBeginning(const string& fullString, const string& beginning) { |
| 191 | if (fullString.length() >= beginning.length()) { |
| 192 | if (fullString.substr(0, beginning.length()) == beginning) { |
| 193 | return true; |
| 194 | } |
| 195 | } |
| 196 | return false; |
| 197 | } |
| 198 | |
| 199 | bool hasEnding(string const& fullString, string const& ending) { |
| 200 | if (fullString.length() >= ending.length()) { |
no test coverage detected