diff options
author | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 17:56:08 +0000 |
---|---|---|
committer | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 17:56:08 +0000 |
commit | 858d4887816dc5239921900f205351d740f38176 (patch) | |
tree | 99ce055954eb3bc1c825101ed7210bf4a051af89 /base/string_util.h | |
parent | 548a6c0f30c3dcf374cc06be48f02a06da5c1d19 (diff) | |
download | chromium_src-858d4887816dc5239921900f205351d740f38176.zip chromium_src-858d4887816dc5239921900f205351d740f38176.tar.gz chromium_src-858d4887816dc5239921900f205351d740f38176.tar.bz2 |
Revert 36459 - Breaks 7 WebKit tests
Changes are:
* base::IsValidCodepoint() now returns false on noncharacter code points.
* base::IsStringUTF8() now uses ICU library (removed old Mozilla implementation).
* Removed base::IsStringWideUTF8() (was unused and confusing)
* file_util::ReplaceIllegalCharactersInPath() now treats Unicode replacement character (U+FFFD) as invalid.
* Associated unit tests updated.
BUG=2759
BUG=30662
TEST=base_unittests gtest_filter=StringUtilTest.IsStringUTF8
TEST=base_unittests gtest_filter=UTFStringConversionsTest.*
TEST=base_unittests gtest_filter=FileUtilICUTestReplaceIllegalCharactersInPathTest
Review URL: http://codereview.chromium.org/548017
TBR=jschuh@chromium.org
Review URL: http://codereview.chromium.org/552026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36460 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r-- | base/string_util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/string_util.h b/base/string_util.h index ac52f37..c895f27 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -227,6 +227,7 @@ bool WideToLatin1(const std::wstring& wide, std::string* latin1); // add a new function for that. bool IsString8Bit(const std::wstring& str); bool IsStringUTF8(const std::string& str); +bool IsStringWideUTF8(const std::wstring& str); bool IsStringASCII(const std::wstring& str); bool IsStringASCII(const base::StringPiece& str); bool IsStringASCII(const string16& str); |