| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef BASE_I18N_WORD_ITERATOR_H_ | 5 #ifndef BASE_I18N_WORD_ITERATOR_H_ |
| 6 #define BASE_I18N_WORD_ITERATOR_H_ | 6 #define BASE_I18N_WORD_ITERATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | |
| 10 #include <vector> | 9 #include <vector> |
| 11 | 10 |
| 12 #include "unicode/ubrk.h" | 11 #include "unicode/ubrk.h" |
| 13 #include "unicode/uchar.h" | 12 #include "unicode/uchar.h" |
| 14 | 13 |
| 15 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 16 #include "base/string16.h" | 15 #include "base/string16.h" |
| 17 | 16 |
| 18 // The WordIterator class iterates through the words and word breaks | 17 // The WordIterator class iterates through the words and word breaks |
| 19 // in a string. (In the string " foo bar! ", the word breaks are at the | 18 // in a string. (In the string " foo bar! ", the word breaks are at the |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // The breaking style (word/line). | 80 // The breaking style (word/line). |
| 82 BreakType break_type_; | 81 BreakType break_type_; |
| 83 | 82 |
| 84 // Previous and current iterator positions. | 83 // Previous and current iterator positions. |
| 85 size_t prev_, pos_; | 84 size_t prev_, pos_; |
| 86 | 85 |
| 87 DISALLOW_COPY_AND_ASSIGN(WordIterator); | 86 DISALLOW_COPY_AND_ASSIGN(WordIterator); |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 #endif // BASE_I18N_WORD_ITERATOR_H__ | 89 #endif // BASE_I18N_WORD_ITERATOR_H__ |
| OLD | NEW |