Lines Matching refs:suffix
1422 // Returns true iff this String ends with the given suffix. *Any*
1423 // String is considered to end with a NULL or empty suffix.
1424 bool String::EndsWith(const char* suffix) const {
1425 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1430 const size_t suffix_len = strlen(suffix);
1432 CStringEquals(c_str_ + this_len - suffix_len, suffix);
1435 // Returns true iff this String ends with the given suffix, ignoring case.
1436 // Any String is considered to end with a NULL or empty suffix.
1437 bool String::EndsWithCaseInsensitive(const char* suffix) const {
1438 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1443 const size_t suffix_len = strlen(suffix);
1445 CaseInsensitiveCStringEquals(c_str_ + this_len - suffix_len, suffix);