diff options
author | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 16:40:38 +0000 |
---|---|---|
committer | jschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 16:40:38 +0000 |
commit | 548a6c0f30c3dcf374cc06be48f02a06da5c1d19 (patch) | |
tree | 57a3406e6d51b44774b9fa37cde1810a1d76a47c /base/string_util.h | |
parent | b78e6049b83a6a221b6c7b47c229b337e3abce43 (diff) | |
download | chromium_src-548a6c0f30c3dcf374cc06be48f02a06da5c1d19.zip chromium_src-548a6c0f30c3dcf374cc06be48f02a06da5c1d19.tar.gz chromium_src-548a6c0f30c3dcf374cc06be48f02a06da5c1d19.tar.bz2 |
Changes are:
* base::IsValidCodepoint() now returns false on non-character 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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string_util.h')
-rw-r--r-- | base/string_util.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/base/string_util.h b/base/string_util.h index c895f27..ac52f37 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -227,7 +227,6 @@ 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); |