diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-05 22:35:53 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-05 22:35:53 +0000 |
commit | d476412adc531fd1651961f0871f2de9846de8b7 (patch) | |
tree | 039f088c226e65af300a4a6fa87246fdebebed29 /base/string_split.h | |
parent | ce09a7137bb47e9561bf851b7a7458a549788e8e (diff) | |
download | chromium_src-d476412adc531fd1651961f0871f2de9846de8b7.zip chromium_src-d476412adc531fd1651961f0871f2de9846de8b7.tar.gz chromium_src-d476412adc531fd1651961f0871f2de9846de8b7.tar.bz2 |
Revert "wstring: remove wstring version of SplitString"
This reverts commit r84336.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_split.h')
-rw-r--r-- | base/string_split.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/string_split.h b/base/string_split.h index 883b126..f2e8c86 100644 --- a/base/string_split.h +++ b/base/string_split.h @@ -20,6 +20,12 @@ namespace base { // |str| begins with or ends with |s|, then an empty string is inserted. // // Every substring is trimmed of any leading or trailing white space. +// Where wchar_t is char16 (i.e. Windows), |c| must be in BMP +// (Basic Multilingual Plane). Elsewhere (Linux/Mac), wchar_t +// should be a valid Unicode code point (32-bit). +BASE_API void SplitString(const std::wstring& str, + wchar_t c, + std::vector<std::wstring>* r); // NOTE: |c| must be in BMP (Basic Multilingual Plane) BASE_API void SplitString(const string16& str, char16 c, |