summaryrefslogtreecommitdiffstats
path: root/base/string_util.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:03:42 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-15 22:03:42 +0000
commitb87c4a775b5b625dc2034b70e1232862d5d7faac (patch)
tree5e4939490ae5d5d049bc9c4ea5ccc1e70c0fb041 /base/string_util.h
parentdf5f308da4fb0526f2af1fc8db24280ffcafcd6e (diff)
downloadchromium_src-b87c4a775b5b625dc2034b70e1232862d5d7faac.zip
chromium_src-b87c4a775b5b625dc2034b70e1232862d5d7faac.tar.gz
chromium_src-b87c4a775b5b625dc2034b70e1232862d5d7faac.tar.bz2
base: Move StringSplitAlongWhitespace to string_split.h
BUG=None TEST=trybots Review URL: http://codereview.chromium.org/5004002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r--base/string_util.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/base/string_util.h b/base/string_util.h
index c238e4a..5466403 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -486,7 +486,6 @@ inline typename string_type::value_type* WriteInto(string_type* str,
//-----------------------------------------------------------------------------
-
// Splits a string into its fields delimited by any of the characters in
// |delimiters|. Each field is added to the |tokens| vector. Returns the
// number of tokens found.
@@ -507,21 +506,6 @@ size_t Tokenize(const base::StringPiece& str,
string16 JoinString(const std::vector<string16>& parts, char16 s);
std::string JoinString(const std::vector<std::string>& parts, char s);
-// WARNING: this uses whitespace as defined by the HTML5 spec. If you need
-// a function similar to this but want to trim all types of whitespace, then
-// factor this out into a function that takes a string containing the characters
-// that are treated as whitespace.
-//
-// Splits the string along whitespace (where whitespace is the five space
-// characters defined by HTML 5). Each contiguous block of non-whitespace
-// characters is added to result.
-void SplitStringAlongWhitespace(const std::wstring& str,
- std::vector<std::wstring>* result);
-void SplitStringAlongWhitespace(const string16& str,
- std::vector<string16>* result);
-void SplitStringAlongWhitespace(const std::string& str,
- std::vector<std::string>* result);
-
// Replace $1-$2-$3..$9 in the format string with |a|-|b|-|c|..|i| respectively.
// Additionally, any number of consecutive '$' characters is replaced by that
// number less one. Eg $$->$, $$$->$$, etc. The offsets parameter here can be