diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-02 04:09:58 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-02 04:09:58 +0000 |
commit | 0b7c092f7f5b196fd9085f1ab796a0c9ac9473a6 (patch) | |
tree | 53272fae82210fbf553bb3a1a0256fba5b851368 /base/string_util.h | |
parent | b112a4cc460212188d353b995a055f6e14029ba3 (diff) | |
download | chromium_src-0b7c092f7f5b196fd9085f1ab796a0c9ac9473a6.zip chromium_src-0b7c092f7f5b196fd9085f1ab796a0c9ac9473a6.tar.gz chromium_src-0b7c092f7f5b196fd9085f1ab796a0c9ac9473a6.tar.bz2 |
Introduce UrlPattern. This is basically me resuming work on
issue 14106, but as it is a complete rewrite, I have started
a new issue.
I also added supporting JoinString() and ReplaceAll()
utility functions.
Review URL: http://codereview.chromium.org/19704
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9031 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r-- | base/string_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h index 28c5d35..6ee079a 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 |