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

Unified Diff: base/string_util.h

Issue 1110014: Reland r42300: "HttpRequestHeaders refactor."" (Closed)
Patch Set: Created 10 years, 9 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_util.cc » ('j') | net/http/http_request_headers.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util.h
diff --git a/base/string_util.h b/base/string_util.h
index 586c60ccbe6703049734164a1d7c283becb4a849..28cd26fc2d5d9fd1ec43ea4948be749cc728e2a0 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -575,6 +575,14 @@ void SplitStringDontTrim(const std::string& str,
char s,
std::vector<std::string>* r);
+// 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);
+
// 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.
« no previous file with comments | « no previous file | base/string_util.cc » ('j') | net/http/http_request_headers.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698