Lines Matching refs:suffix
1664 // Returns true iff this String ends with the given suffix. *Any*
1665 // String is considered to end with a NULL or empty suffix.
1666 bool String::EndsWith(const char* suffix) const {
1667 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1672 const size_t suffix_len = strlen(suffix);
1674 CStringEquals(c_str() + this_len - suffix_len, suffix);
1677 // Returns true iff this String ends with the given suffix, ignoring case.
1678 // Any String is considered to end with a NULL or empty suffix.
1679 bool String::EndsWithCaseInsensitive(const char* suffix) const {
1680 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1685 const size_t suffix_len = strlen(suffix);
1687 CaseInsensitiveCStringEquals(c_str() + this_len - suffix_len, suffix);