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

Unified Diff: base/string_util.h

Issue 19704: Introduce UrlPattern. (Closed)
Patch Set: more feedback Created 11 years, 11 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') | chrome/common/extensions/url_pattern_unittest.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 28c5d3549eacbc8d94086bb8fe2cf5a952882287..6ee079a12ef8c7fafc869edacce1678c771bbb01 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -494,6 +494,10 @@ void SplitStringDontTrim(const std::string& str,
char s,
std::vector<std::string>* r);
+// Does the opposite of SplitString().
+std::wstring JoinString(const std::vector<std::wstring>& parts, wchar_t s);
+std::string JoinString(const std::vector<std::string>& parts, char s);
+
// WARNING: this uses whitespace as defined by the HTML5 spec. If you need
// a function similar to this but want to trim all types of whitespace, then
// factor this out into a function that takes a string containing the characters
« no previous file with comments | « no previous file | base/string_util.cc » ('j') | chrome/common/extensions/url_pattern_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698