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

Side by Side Diff: chrome/browser/ui/app_list/search/term_break_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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/app_list/search/term_break_iterator.h" 5 #include "chrome/browser/ui/app_list/search/term_break_iterator.h"
6 6
7 #include "base/i18n/char_iterator.h" 7 #include "base/i18n/char_iterator.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "third_party/icu/public/common/unicode/uchar.h" 10 #include "third_party/icu/source/common/unicode/uchar.h"
11 11
12 namespace app_list { 12 namespace app_list {
13 13
14 TermBreakIterator::TermBreakIterator(const string16& word) 14 TermBreakIterator::TermBreakIterator(const string16& word)
15 : word_(word), 15 : word_(word),
16 prev_(npos), 16 prev_(npos),
17 pos_(0), 17 pos_(0),
18 iter_(new base::i18n::UTF16CharIterator(&word)), 18 iter_(new base::i18n::UTF16CharIterator(&word)),
19 state_(STATE_START) { 19 state_(STATE_START) {
20 } 20 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 if (is_upper) 68 if (is_upper)
69 return STATE_UPPER; 69 return STATE_UPPER;
70 if (is_lower) 70 if (is_lower)
71 return STATE_LOWER; 71 return STATE_LOWER;
72 72
73 return STATE_CHAR; 73 return STATE_CHAR;
74 } 74 }
75 75
76 } // namespace app_list 76 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698