OLD | NEW |
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/tokenized_string_char_iterator.h" | 5 #include "ui/app_list/search/tokenized_string_char_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 "third_party/icu/source/common/unicode/utf16.h" | 9 #include "third_party/icu/source/common/unicode/utf16.h" |
10 | 10 |
11 namespace app_list { | 11 namespace app_list { |
12 | 12 |
13 TokenizedStringCharIterator::State::State() : token_index(0u), char_index(0) {} | 13 TokenizedStringCharIterator::State::State() : token_index(0u), char_index(0) {} |
14 | 14 |
15 TokenizedStringCharIterator::State::State(size_t token_index, int char_index) | 15 TokenizedStringCharIterator::State::State(size_t token_index, int char_index) |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 if (current_token_ == tokens_.size()) { | 83 if (current_token_ == tokens_.size()) { |
84 current_token_iter_.reset(); | 84 current_token_iter_.reset(); |
85 return; | 85 return; |
86 } | 86 } |
87 | 87 |
88 current_token_iter_.reset( | 88 current_token_iter_.reset( |
89 new base::i18n::UTF16CharIterator(&tokens_[current_token_])); | 89 new base::i18n::UTF16CharIterator(&tokens_[current_token_])); |
90 } | 90 } |
91 | 91 |
92 } // namespace app_list | 92 } // namespace app_list |
OLD | NEW |