diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 02:01:48 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-02 02:01:48 +0000 |
commit | e8478ae4ef8bd1dbb83cd46e8af060d5331ba2df (patch) | |
tree | f1b969244d1ffa41c32242429e9218ccd4955fb8 /base/string_split.h | |
parent | ee940fc4997e1e0369f8e9fd1cce24311e1945a0 (diff) | |
download | chromium_src-e8478ae4ef8bd1dbb83cd46e8af060d5331ba2df.zip chromium_src-e8478ae4ef8bd1dbb83cd46e8af060d5331ba2df.tar.gz chromium_src-e8478ae4ef8bd1dbb83cd46e8af060d5331ba2df.tar.bz2 |
base: Move SplitStringUsingSubstr functions from string_util.h to string_split.h
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/3284005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_split.h')
-rw-r--r-- | base/string_split.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/base/string_split.h b/base/string_split.h index d36a71f..4ded704 100644 --- a/base/string_split.h +++ b/base/string_split.h @@ -10,6 +10,8 @@ #include <utility> #include <vector> +#include "base/string16.h" + namespace base { bool SplitStringIntoKeyValues( @@ -23,6 +25,14 @@ bool SplitStringIntoKeyValuePairs( char key_value_pair_delimiter, std::vector<std::pair<std::string, std::string> >* kv_pairs); +// The same as SplitString, but use a substring delimiter instead of a char. +void SplitStringUsingSubstr(const string16& str, + const string16& s, + std::vector<string16>* r); +void SplitStringUsingSubstr(const std::string& str, + const std::string& s, + std::vector<std::string>* r); + } // namespace base #endif // BASE_STRING_SPLIT_H |