| 334 | } |
| 335 | |
| 336 | bool SimpleString::startsWith(const SimpleString& other) const |
| 337 | { |
| 338 | if (other.size() == 0) return true; |
| 339 | else if (size() == 0) return false; |
| 340 | else return StrStr(getBuffer(), other.getBuffer()) == getBuffer(); |
| 341 | } |
| 342 | |
| 343 | bool SimpleString::endsWith(const SimpleString& other) const |
| 344 | { |