• Home
  • Raw
  • Download

Lines Matching refs:std

136 const std::string& EmptyString();
137 const std::wstring& EmptyWString();
148 bool TrimString(const std::wstring& input,
150 std::wstring* output);
154 bool TrimString(const std::string& input,
156 std::string* output);
171 TrimPositions TrimWhitespace(const std::wstring& input,
173 std::wstring* output);
177 TrimPositions TrimWhitespaceASCII(const std::string& input,
179 std::string* output);
183 TrimPositions TrimWhitespace(const std::string& input,
185 std::string* output);
195 std::wstring CollapseWhitespace(const std::wstring& text,
199 std::string CollapseWhitespaceASCII(const std::string& text,
204 bool ContainsOnlyWhitespaceASCII(const std::string& str);
208 std::string WideToASCII(const std::wstring& wide);
209 std::wstring ASCIIToWide(const base::StringPiece& ascii);
210 std::string UTF16ToASCII(const string16& utf16);
215 bool WideToLatin1(const std::wstring& wide, std::string* latin1);
228 bool IsString8Bit(const std::wstring& str);
229 bool IsStringUTF8(const std::string& str);
230 bool IsStringWideUTF8(const std::wstring& str);
231 bool IsStringASCII(const std::wstring& str);
279 bool LowerCaseEqualsASCII(const std::string& a, const char* b);
280 bool LowerCaseEqualsASCII(const std::wstring& a, const char* b);
284 bool LowerCaseEqualsASCII(std::string::const_iterator a_begin,
285 std::string::const_iterator a_end,
287 bool LowerCaseEqualsASCII(std::wstring::const_iterator a_begin,
288 std::wstring::const_iterator a_end,
308 bool StartsWithASCII(const std::string& str,
309 const std::string& search,
311 bool StartsWith(const std::wstring& str,
312 const std::wstring& search,
319 bool EndsWith(const std::string& str,
320 const std::string& search,
322 bool EndsWith(const std::wstring& str,
323 const std::wstring& search,
365 std::wstring FormatBytes(int64 bytes, DataUnits units, bool show_units);
370 std::wstring FormatSpeed(int64 bytes, DataUnits units, bool show_units);
374 std::wstring FormatNumber(int64 number);
382 void ReplaceFirstSubstringAfterOffset(std::string* str,
383 std::string::size_type start_offset,
384 const std::string& find_this,
385 const std::string& replace_with);
397 void ReplaceSubstringsAfterOffset(std::string* str,
398 std::string::size_type start_offset,
399 const std::string& find_this,
400 const std::string& replace_with);
403 std::string IntToString(int value);
404 std::wstring IntToWString(int value);
406 std::string UintToString(unsigned int value);
407 std::wstring UintToWString(unsigned int value);
409 std::string Int64ToString(int64 value);
410 std::wstring Int64ToWString(int64 value);
411 std::string Uint64ToString(uint64 value);
412 std::wstring Uint64ToWString(uint64 value);
415 std::string DoubleToString(double value);
416 std::wstring DoubleToWString(double value);
428 bool StringToInt(const std::string& input, int* output);
430 bool StringToInt64(const std::string& input, int64* output);
432 bool HexStringToInt(const std::string& input, int* output);
439 bool HexStringToBytes(const std::string& input, std::vector<uint8>* output);
440 bool HexStringToBytes(const string16& input, std::vector<uint8>* output);
448 bool StringToDouble(const std::string& input, double* output);
454 int StringToInt(const std::string& value);
456 int64 StringToInt64(const std::string& value);
458 int HexStringToInt(const std::string& value);
460 double StringToDouble(const std::string& value);
464 std::string StringPrintf(const char* format, ...) PRINTF_FORMAT(1, 2);
465 std::wstring StringPrintf(const wchar_t* format, ...) WPRINTF_FORMAT(1, 2);
468 std::string StringPrintV(const char* format, va_list ap) PRINTF_FORMAT(1, 0);
471 const std::string& SStringPrintf(std::string* dst, const char* format, ...)
473 const std::wstring& SStringPrintf(std::wstring* dst,
478 void StringAppendF(std::string* dst, const char* format, ...)
480 void StringAppendF(std::wstring* dst, const wchar_t* format, ...)
485 void StringAppendV(std::string* dst, const char* format, va_list ap)
487 void StringAppendV(std::wstring* dst, const wchar_t* format, va_list ap)
542 void SplitString(const std::wstring& str,
544 std::vector<std::wstring>* r);
547 std::vector<string16>* r);
548 void SplitString(const std::string& str,
550 std::vector<std::string>* r);
553 void SplitStringDontTrim(const std::wstring& str,
555 std::vector<std::wstring>* r);
558 std::vector<string16>* r);
559 void SplitStringDontTrim(const std::string& str,
561 std::vector<std::string>* r);
566 size_t Tokenize(const std::wstring& str,
567 const std::wstring& delimiters,
568 std::vector<std::wstring>* tokens);
571 std::vector<string16>* tokens);
572 size_t Tokenize(const std::string& str,
573 const std::string& delimiters,
574 std::vector<std::string>* tokens);
577 std::wstring JoinString(const std::vector<std::wstring>& parts, wchar_t s);
578 string16 JoinString(const std::vector<string16>& parts, char16 s);
579 std::string JoinString(const std::vector<std::string>& parts, char s);
589 void SplitStringAlongWhitespace(const std::wstring& str,
590 std::vector<std::wstring>* result);
592 std::vector<string16>* result);
593 void SplitStringAlongWhitespace(const std::string& str,
594 std::vector<std::string>* result);
600 const std::vector<string16>& subst,
601 std::vector<size_t>* offsets);
603 std::string ReplaceStringPlaceholders(const base::StringPiece& format_string,
604 const std::vector<std::string>& subst,
605 std::vector<size_t>* offsets);
618 bool ElideString(const std::wstring& input, int max_len, std::wstring* output);
624 bool MatchPatternWide(const std::wstring& string, const std::wstring& pattern);
625 bool MatchPatternASCII(const std::string& string, const std::string& pattern);
634 std::string HexEncode(const void* bytes, size_t size);