summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellcheck_worditerator.cc
diff options
context:
space:
mode:
authorjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 05:12:29 +0000
committerjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 05:12:29 +0000
commitb5b2385af64eb08b1feb53fb0ad65c835f472912 (patch)
tree6af57cd4a4965cebe2107e07ca8e563444c3afe9 /chrome/browser/spellcheck_worditerator.cc
parent80d6524d33061e0e4f7b06dd87ee94de3e05c7a8 (diff)
downloadchromium_src-b5b2385af64eb08b1feb53fb0ad65c835f472912.zip
chromium_src-b5b2385af64eb08b1feb53fb0ad65c835f472912.tar.gz
chromium_src-b5b2385af64eb08b1feb53fb0ad65c835f472912.tar.bz2
Use 'icu::' namespace explicitly throughout Chrome tree instead of relying on 'using namespace icu'.
This is Chrome's counterpart to the ICU header change that disables 'using namespace icu' (http://codereview.chromium.org/171010/show), which is required to avoid the name colission between Chrome's StringPiece (in base) and ICU's StringPiece. The webkit change (which is minor) will be dealt with in the webkit bugzilla. This can go in before the ICU change/upgrade without affecting anything. BUG=8198 TEST=All the targets are built without an error on all platforms. Review URL: http://codereview.chromium.org/171012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellcheck_worditerator.cc')
-rw-r--r--chrome/browser/spellcheck_worditerator.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/spellcheck_worditerator.cc b/chrome/browser/spellcheck_worditerator.cc
index ab85fb0..dde4752 100644
--- a/chrome/browser/spellcheck_worditerator.cc
+++ b/chrome/browser/spellcheck_worditerator.cc
@@ -84,16 +84,16 @@ void SpellcheckCharAttribute::SetDefaultLanguage(const std::string& language) {
// combining characters for such languages.
// To treat such combining characters as word characters, we decompose
// this exemplar set and treat the decomposed characters as word characters.
- UnicodeString composed;
+ icu::UnicodeString composed;
for (int i = 0; i < length; ++i)
composed.append(uset_charAt(exemplar_set, i));
- UnicodeString decomposed;
- Normalizer::decompose(composed, FALSE, 0, decomposed, status);
+ icu::UnicodeString decomposed;
+ icu::Normalizer::decompose(composed, FALSE, 0, decomposed, status);
if (U_SUCCESS(status)) {
- StringCharacterIterator iterator(decomposed);
+ icu::StringCharacterIterator iterator(decomposed);
UChar32 character = iterator.first32();
- while (character != CharacterIterator::DONE) {
+ while (character != icu::CharacterIterator::DONE) {
SetWordScript(GetScriptCode(character), true);
character = iterator.next32();
}
@@ -264,10 +264,10 @@ bool SpellcheckWordIterator::Normalize(int input_start,
// does not only write NFKD and NFKC can compose ligatures into their ASCII
// alternatives, but also write NFKC keeps accents of characters.
// Therefore, NFKC seems to be the best option for hunspell.
- UnicodeString input(FALSE, &word_[input_start], input_length);
+ icu::UnicodeString input(FALSE, &word_[input_start], input_length);
UErrorCode status = U_ZERO_ERROR;
- UnicodeString output;
- Normalizer::normalize(input, UNORM_NFKC, 0, output, status);
+ icu::UnicodeString output;
+ icu::Normalizer::normalize(input, UNORM_NFKC, 0, output, status);
if (U_SUCCESS(status))
output_string->assign(output.getTerminatedBuffer());
return status == U_ZERO_ERROR || status == U_STRING_NOT_TERMINATED_WARNING;