summaryrefslogtreecommitdiffstats
path: root/base/string_util.h
diff options
context:
space:
mode:
authormbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 23:39:50 +0000
committermbelshe@chromium.org <mbelshe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 23:39:50 +0000
commit81e02d757129ff925aa352d51d6db9f7ab092528 (patch)
tree626cd10a28e669e0b97e7739f6c790fd881c7c1b /base/string_util.h
parent1d874a809da9edd362288409233a842bee7c94a9 (diff)
downloadchromium_src-81e02d757129ff925aa352d51d6db9f7ab092528.zip
chromium_src-81e02d757129ff925aa352d51d6db9f7ab092528.tar.gz
chromium_src-81e02d757129ff925aa352d51d6db9f7ab092528.tar.bz2
Add Tokenize() for StringPiece.
BUG=none TEST=StringUtilTest.TokenizeStringPiece Review URL: http://codereview.chromium.org/2463007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r--base/string_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h
index cb7e5b5..11a9fd2 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -601,6 +601,9 @@ size_t Tokenize(const string16& str,
size_t Tokenize(const std::string& str,
const std::string& delimiters,
std::vector<std::string>* tokens);
+size_t Tokenize(const base::StringPiece& str,
+ const base::StringPiece& delimiters,
+ std::vector<base::StringPiece>* tokens);
// Does the opposite of SplitString().
std::wstring JoinString(const std::vector<std::wstring>& parts, wchar_t s);