Home | History | Annotate | Download | only in src

Lines Matching refs:suffix

1671 // Returns true iff this String ends with the given suffix.  *Any*
1672 // String is considered to end with a NULL or empty suffix.
1673 bool String::EndsWith(const char* suffix) const {
1674 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1679 const size_t suffix_len = strlen(suffix);
1681 CStringEquals(c_str_ + this_len - suffix_len, suffix);
1684 // Returns true iff this String ends with the given suffix, ignoring case.
1685 // Any String is considered to end with a NULL or empty suffix.
1686 bool String::EndsWithCaseInsensitive(const char* suffix) const {
1687 if (suffix == NULL || CStringEquals(suffix, "")) return true;
1692 const size_t suffix_len = strlen(suffix);
1694 CaseInsensitiveCStringEquals(c_str_ + this_len - suffix_len, suffix);