Lines Matching refs:size
33 CHECK_NE(delimiters.size(), 0U); in Split()
52 if (s.size() == 0) { in Trim()
57 size_t end_index = s.size() - 1; in Trim()
60 while (start_index < s.size()) { in Trim()
91 return s.substr(0, prefix.size()) == prefix; in StartsWith()
99 return s.size() >= prefix.size() && strncasecmp(s.data(), prefix.data(), prefix.size()) == 0; in StartsWithIgnoreCase()
103 return s.size() >= suffix.size() && s.substr(s.size() - suffix.size(), suffix.size()) == suffix; in EndsWith()
111 return s.size() >= suffix.size() && in EndsWithIgnoreCase()
112 strncasecmp(s.data() + (s.size() - suffix.size()), suffix.data(), suffix.size()) == 0; in EndsWithIgnoreCase()
116 return lhs.size() == rhs.size() && strncasecmp(lhs.data(), rhs.data(), lhs.size()) == 0; in EqualsIgnoreCase()
130 result.append(to.data(), to.size()); in StringReplace()
132 start_pos = pos + from.size(); in StringReplace()
134 result.append(s.data() + start_pos, s.size() - start_pos); in StringReplace()