Beispiel #1
0
	bool RemoveChars(const std::string& input,
		const base::StringPiece& remove_chars,
		std::string* output) {
		return ReplaceChars(input, remove_chars.as_string(), std::string(), 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
	bool ReplaceChars(const std::string& input,
		const base::StringPiece& replace_chars,
		const std::string& replace_with,
		std::string* output) {
		return ReplaceCharsT(input, replace_chars.as_string(), replace_with, output);
	}