Lines Matching refs:str
74 std::string ToLowerASCII(std::string_view str);
75 std::u16string ToLowerASCII(std::u16string_view str);
78 std::string ToUpperASCII(std::string_view str);
79 std::u16string ToUpperASCII(std::u16string_view str);
233 bool IsStringUTF8(std::string_view str);
234 bool IsStringASCII(std::string_view str);
235 bool IsStringASCII(std::u16string_view str);
239 bool LowerCaseEqualsASCII(std::string_view str,
241 bool LowerCaseEqualsASCII(std::u16string_view str,
247 bool EqualsASCII(std::u16string_view str, std::string_view ascii);
254 bool StartsWithCaseInsensitiveASCII(std::string_view str,
256 bool StartsWithCaseInsensitiveASCII(std::u16string_view str,
258 bool EndsWithCaseInsensitiveASCII(std::string_view str,
260 bool EndsWithCaseInsensitiveASCII(std::u16string_view str,
312 void ReplaceFirstSubstringAfterOffset(std::u16string* str,
316 void ReplaceFirstSubstringAfterOffset(std::string* str,
321 // Starting at |start_offset| (usually 0), look through |str| and replace all
326 // std::replace(str.begin(), str.end(), 'a', 'b');
327 void ReplaceSubstringsAfterOffset(std::u16string* str,
331 void ReplaceSubstringsAfterOffset(std::string* str,
336 // Reserves enough memory in |str| to accommodate |length_with_null| characters,
337 // sets the size of |str| to |length_with_null - 1| characters, and returns a
345 // would have size 0, and trying to access &((*str)[0]) in that case can result
353 // of the string, and not doing that will mean people who access |str| rather
354 // than str.c_str() will get back a string of whatever size |str| had on entry
356 char* WriteInto(std::string* str, size_t length_with_null);
357 char16_t* WriteInto(std::u16string* str, size_t length_with_null);