TrimPositions TrimWhitespaceASCII(const std::string& input, TrimPositions positions, std::string* output) { return TrimStringT(input, std::string(kWhitespaceASCII), positions, output); }
bool TrimString(const std::string& input, const base::StringPiece& trim_chars, std::string* output) { return TrimStringT(input, trim_chars.as_string(), TRIM_ALL, output) != TRIM_NONE; }
TrimPositions TrimWhitespace(const string16& input, TrimPositions positions, string16* output) { return TrimStringT(input, base::string16(kWhitespaceUTF16), positions, output); }
std::wstring& TrimTailingString(std::wstring& str, WStringView chars) { TrimStringT(str, chars, TrimPosition::TRIM_TAILING); return str; }
std::wstring& TrimLeadingString(std::wstring& str, WStringView chars) { TrimStringT(str, chars, TrimPosition::TRIM_LEADING); return str; }
std::wstring& TrimString(std::wstring& str, WStringView chars) { TrimStringT(str, chars, TrimPosition::TRIM_ALL); return str; }
TrimPositions TrimWhitespace(const std::wstring& input, TrimPositions positions, std::wstring* output) { return TrimStringT(input, kWhitespaceWide, positions, output); }
bool TrimString(const std::string& input, const char trim_chars[], std::string* output) { return TrimStringT(input, trim_chars, TRIM_ALL, output) != TRIM_NONE; }