Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: base/string_split.h

Issue 3284005: base: Move SplitStringUsingSubstr functions from string_util.h to string_split.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix base_unittests Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/string_split.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_split.h
diff --git a/base/string_split.h b/base/string_split.h
index d36a71fe3f32920ebf453c3a4fdbdbff220bff38..4ded704692eb05a9bb5d32e0dfe3490a3dfc3b79 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
« no previous file with comments | « no previous file | base/string_split.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698