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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_worditerator.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Implements a custom word iterator used for our spellchecker. 5 // Implements a custom word iterator used for our spellchecker.
6 6
7 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h" 7 #include "chrome/renderer/spellchecker/spellcheck_worditerator.h"
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h"
13 #include "base/i18n/break_iterator.h" 12 #include "base/i18n/break_iterator.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
17 #include "chrome/renderer/spellchecker/spellcheck.h" 17 #include "chrome/renderer/spellchecker/spellcheck.h"
18 #include "third_party/icu/source/common/unicode/normlzr.h" 18 #include "third_party/icu/source/common/unicode/normlzr.h"
19 #include "third_party/icu/source/common/unicode/schriter.h" 19 #include "third_party/icu/source/common/unicode/schriter.h"
20 #include "third_party/icu/source/common/unicode/uscript.h" 20 #include "third_party/icu/source/common/unicode/uscript.h"
21 #include "third_party/icu/source/i18n/unicode/ulocdata.h" 21 #include "third_party/icu/source/i18n/unicode/ulocdata.h"
22 22
23 using base::i18n::BreakIterator; 23 using base::i18n::BreakIterator;
24 24
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 if (status != U_ZERO_ERROR && status != U_STRING_NOT_TERMINATED_WARNING) 429 if (status != U_ZERO_ERROR && status != U_STRING_NOT_TERMINATED_WARNING)
430 return false; 430 return false;
431 431
432 // Copy the normalized text to the output. 432 // Copy the normalized text to the output.
433 icu::StringCharacterIterator it(output); 433 icu::StringCharacterIterator it(output);
434 for (UChar c = it.first(); c != icu::CharacterIterator::DONE; c = it.next()) 434 for (UChar c = it.first(); c != icu::CharacterIterator::DONE; c = it.next())
435 attribute_->OutputChar(c, output_string); 435 attribute_->OutputChar(c, output_string);
436 436
437 return !output_string->empty(); 437 return !output_string->empty();
438 } 438 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698