From 858d4887816dc5239921900f205351d740f38176 Mon Sep 17 00:00:00 2001 From: "jschuh@chromium.org" Date: Sat, 16 Jan 2010 17:56:08 +0000 Subject: 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 --- base/string_util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'base/string_util.h') 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); -- cgit v1.1