Beispiel #1
0
	TrimPositions TrimWhitespaceASCII(const std::string& input,
		TrimPositions positions,
		std::string* output) {
		return TrimStringT(input, std::string(kWhitespaceASCII), positions, output);
	}
Beispiel #2
0
	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;
	}
Beispiel #3
0
	TrimPositions TrimWhitespace(const string16& input,
		TrimPositions positions,
		string16* output) {
		return TrimStringT(input, base::string16(kWhitespaceUTF16), positions,
			output);
	}
Beispiel #4
0
std::wstring& TrimTailingString(std::wstring& str, WStringView chars)
{
    TrimStringT(str, chars, TrimPosition::TRIM_TAILING);
    return str;
}
Beispiel #5
0
std::wstring& TrimLeadingString(std::wstring& str, WStringView chars)
{
    TrimStringT(str, chars, TrimPosition::TRIM_LEADING);
    return str;
}
Beispiel #6
0
std::wstring& TrimString(std::wstring& str, WStringView chars)
{
    TrimStringT(str, chars, TrimPosition::TRIM_ALL);
    return str;
}
Beispiel #7
0
TrimPositions TrimWhitespace(const std::wstring& input,
                             TrimPositions positions,
                             std::wstring* output)
{
    return TrimStringT(input, kWhitespaceWide, positions, output);
}
Beispiel #8
0
bool TrimString(const std::string& input,
                const char trim_chars[],
                std::string* output)
{
    return TrimStringT(input, trim_chars, TRIM_ALL, output) != TRIM_NONE;
}