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

Unified Diff: base/strings/string_split.h

Issue 22031002: Omnibox: Create DemoteByType Experiment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter + Alexei comments Created 7 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/strings/string_split.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string_split.h
diff --git a/base/strings/string_split.h b/base/strings/string_split.h
index 2803752d03e1ee4164388fabc1575f06bd3232e0..34dae44a7544f0d9b02f5297b53781bdcceab4e0 100644
--- a/base/strings/string_split.h
+++ b/base/strings/string_split.h
@@ -36,11 +36,13 @@ BASE_EXPORT bool SplitStringIntoKeyValues(const std::string& line,
std::string* key,
std::vector<std::string>* values);
+typedef std::vector<std::pair<std::string, std::string> > KeyValuePairs;
darin (slow to review) 2013/08/08 04:40:55 If I saw base::KeyValuePairs in code, it wouldn't
Mark P 2013/08/08 13:16:02 Yes, that's an improvement. Done.
+
BASE_EXPORT bool SplitStringIntoKeyValuePairs(
const std::string& line,
char key_value_delimiter,
char key_value_pair_delimiter,
- std::vector<std::pair<std::string, std::string> >* kv_pairs);
+ KeyValuePairs* kv_pairs);
darin (slow to review) 2013/08/08 04:40:55 nit: while you are here, perhaps kv_pairs can be n
Mark P 2013/08/08 13:16:02 Okay. Done.
// The same as SplitString, but use a substring delimiter instead of a char.
BASE_EXPORT void SplitStringUsingSubstr(const string16& str,
« no previous file with comments | « no previous file | base/strings/string_split.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698