OLD | NEW |
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 #ifndef BASE_I18N_BIDI_LINE_ITERATOR_H_ | 5 #ifndef BASE_I18N_BIDI_LINE_ITERATOR_H_ |
6 #define BASE_I18N_BIDI_LINE_ITERATOR_H_ | 6 #define BASE_I18N_BIDI_LINE_ITERATOR_H_ |
7 | 7 |
8 #include "unicode/ubidi.h" | |
9 | |
10 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
11 #include "base/i18n/base_i18n_export.h" | 9 #include "base/i18n/base_i18n_export.h" |
12 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "third_party/icu/public/common/unicode/ubidi.h" |
13 | 12 |
14 namespace base { | 13 namespace base { |
15 namespace i18n { | 14 namespace i18n { |
16 | 15 |
17 // A simple wrapper class for the bidirectional iterator of ICU. | 16 // A simple wrapper class for the bidirectional iterator of ICU. |
18 // This class uses the bidirectional iterator of ICU to split a line of | 17 // This class uses the bidirectional iterator of ICU to split a line of |
19 // bidirectional texts into visual runs in its display order. | 18 // bidirectional texts into visual runs in its display order. |
20 class BASE_I18N_EXPORT BiDiLineIterator { | 19 class BASE_I18N_EXPORT BiDiLineIterator { |
21 public: | 20 public: |
22 BiDiLineIterator(); | 21 BiDiLineIterator(); |
(...skipping 15 matching lines...) Expand all Loading... |
38 private: | 37 private: |
39 UBiDi* bidi_; | 38 UBiDi* bidi_; |
40 | 39 |
41 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator); | 40 DISALLOW_COPY_AND_ASSIGN(BiDiLineIterator); |
42 }; | 41 }; |
43 | 42 |
44 } // namespace i18n | 43 } // namespace i18n |
45 } // namespace base | 44 } // namespace base |
46 | 45 |
47 #endif // BASE_I18N_BIDI_LINE_ITERATOR_H_ | 46 #endif // BASE_I18N_BIDI_LINE_ITERATOR_H_ |
OLD | NEW |