diff options
author | jschuh@google.com <jschuh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 23:39:58 +0000 |
---|---|---|
committer | jschuh@google.com <jschuh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 23:39:58 +0000 |
commit | bce55e2762118f3dc567afdd3a7af137899f783a (patch) | |
tree | bc7815b3a881e3e1017534f8864164599942621c /base/i18n | |
parent | ef37e08636e4d5e4be1aa4b14a9e2d3d57fc2cfb (diff) | |
download | chromium_src-bce55e2762118f3dc567afdd3a7af137899f783a.zip chromium_src-bce55e2762118f3dc567afdd3a7af137899f783a.tar.gz chromium_src-bce55e2762118f3dc567afdd3a7af137899f783a.tar.bz2 |
Make IsStringUTF8 reject (U+FDD0 .. U+FDEF)
Eliminated the old Mozilla implementation and used an ICU-based implementation.
BUG=2759
TEST=base_unittests --gtest_filter=StringUtilTest.IsStringUTF8
Review URL: http://codereview.chromium.org/661205
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40178 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/i18n')
-rw-r--r-- | base/i18n/icu_string_conversions.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/base/i18n/icu_string_conversions.cc b/base/i18n/icu_string_conversions.cc index 252eb9c..9014a7b 100644 --- a/base/i18n/icu_string_conversions.cc +++ b/base/i18n/icu_string_conversions.cc @@ -17,15 +17,6 @@ namespace base { namespace { - -inline bool IsValidCodepoint(uint32 code_point) { - // Excludes the surrogate code points ([0xD800, 0xDFFF]) and - // codepoints larger than 0x10FFFF (the highest codepoint allowed). - // Non-characters and unassigned codepoints are allowed. - return code_point < 0xD800u || - (code_point >= 0xE000u && code_point <= 0x10FFFFu); -} - // ToUnicodeCallbackSubstitute() is based on UCNV_TO_U_CALLBACK_SUSBSTITUTE // in source/common/ucnv_err.c. |