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

Side by Side Diff: base/i18n/char_iterator.cc

Issue 18252003: Replace third_party/icu/public with third_party/icu/source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll ICU to 211851 Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « base/i18n/case_conversion.cc ('k') | base/i18n/file_util_icu.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "base/i18n/char_iterator.h" 5 #include "base/i18n/char_iterator.h"
6 6
7 #include "third_party/icu/public/common/unicode/utf8.h" 7 #include "third_party/icu/source/common/unicode/utf8.h"
8 #include "third_party/icu/public/common/unicode/utf16.h" 8 #include "third_party/icu/source/common/unicode/utf16.h"
9 9
10 namespace base { 10 namespace base {
11 namespace i18n { 11 namespace i18n {
12 12
13 UTF8CharIterator::UTF8CharIterator(const std::string* str) 13 UTF8CharIterator::UTF8CharIterator(const std::string* str)
14 : str_(reinterpret_cast<const uint8_t*>(str->data())), 14 : str_(reinterpret_cast<const uint8_t*>(str->data())),
15 len_(str->size()), 15 len_(str->size()),
16 array_pos_(0), 16 array_pos_(0),
17 next_pos_(0), 17 next_pos_(0),
18 char_pos_(0), 18 char_pos_(0),
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 return true; 73 return true;
74 } 74 }
75 75
76 void UTF16CharIterator::ReadChar() { 76 void UTF16CharIterator::ReadChar() {
77 // This is actually a huge macro, so is worth having in a separate function. 77 // This is actually a huge macro, so is worth having in a separate function.
78 U16_NEXT(str_, next_pos_, len_, char_); 78 U16_NEXT(str_, next_pos_, len_, char_);
79 } 79 }
80 80
81 } // namespace i18n 81 } // namespace i18n
82 } // namespace base 82 } // namespace base
OLDNEW
« no previous file with comments | « base/i18n/case_conversion.cc ('k') | base/i18n/file_util_icu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698