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

Unified Diff: base/string_util.h

Issue 304003: Add more string16 variants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util.h
===================================================================
--- base/string_util.h (revision 29400)
+++ base/string_util.h (working copy)
@@ -503,6 +503,9 @@
void SplitString(const std::wstring& str,
wchar_t s,
std::vector<std::wstring>* r);
+void SplitString(const string16& str,
+ char16 s,
+ std::vector<string16>* r);
void SplitString(const std::string& str,
char s,
std::vector<std::string>* r);
@@ -511,12 +514,16 @@
void SplitStringDontTrim(const std::wstring& str,
wchar_t s,
std::vector<std::wstring>* r);
+void SplitStringDontTrim(const string16& str,
+ char16 s,
+ std::vector<string16>* r);
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);
+string16 JoinString(const std::vector<string16>& parts, char16 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
@@ -529,6 +536,8 @@
// characters is added to result.
void SplitStringAlongWhitespace(const std::wstring& str,
std::vector<std::wstring>* result);
+void SplitStringAlongWhitespace(const string16& str,
+ std::vector<string16>* result);
void SplitStringAlongWhitespace(const std::string& str,
std::vector<std::string>* result);
« no previous file with comments | « no previous file | base/string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698