Home | History | Annotate | Download | only in src

Lines Matching refs:suffix

1651 // Returns true iff this String ends with the given suffix.  *Any*
1652 // String is considered to end with a NULL or empty suffix.
1653 bool String::EndsWith(const char* suffix) const {
1654 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1659 const size_t suffix_len = strlen(suffix);
1661 CStringEquals(c_str() + this_len - suffix_len, suffix);
1664 // Returns true iff this String ends with the given suffix, ignoring case.
1665 // Any String is considered to end with a NULL or empty suffix.
1666 bool String::EndsWithCaseInsensitive(const char* suffix) const {
1667 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1672 const size_t suffix_len = strlen(suffix);
1674 CaseInsensitiveCStringEquals(c_str() + this_len - suffix_len, suffix);