Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1537)

Unified Diff: chrome/browser/spellcheck_worditerator.cc

Issue 171012: Use 'icu::' namespace explicitly (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_util.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellcheck_worditerator.cc
===================================================================
--- chrome/browser/spellcheck_worditerator.cc (revision 23559)
+++ chrome/browser/spellcheck_worditerator.cc (working copy)
@@ -84,16 +84,16 @@
// 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 @@
// 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;
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_util.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698