diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 23:10:39 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 23:10:39 +0000 |
commit | 46878fb99cebcc06936428a4cf04586734856fe0 (patch) | |
tree | 60d0107ef6b2b1d4074037fe4e865c8a201d9af0 /base/string_util.h | |
parent | 8b6c1e3833d5030da152ef816ba0f6673082c25a (diff) | |
download | chromium_src-46878fb99cebcc06936428a4cf04586734856fe0.zip chromium_src-46878fb99cebcc06936428a4cf04586734856fe0.tar.gz chromium_src-46878fb99cebcc06936428a4cf04586734856fe0.tar.bz2 |
add CollapseWhitespaceASCII
R=erikkay
Review URL: http://codereview.chromium.org/119199
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17689 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r-- | base/string_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h index b082078..44b6d03 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -171,6 +171,8 @@ TrimPositions TrimWhitespace(const std::string& input, // (3) All other whitespace sequences are converted to single spaces. std::wstring CollapseWhitespace(const std::wstring& text, bool trim_sequences_with_line_breaks); +std::string CollapseWhitespaceASCII(const std::string& text, + bool trim_sequences_with_line_breaks); // These convert between ASCII (7-bit) and Wide/UTF16 strings. std::string WideToASCII(const std::wstring& wide); |