| 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_CHAR_ITERATOR_H_ | 5 #ifndef BASE_I18N_CHAR_ITERATOR_H_ |
| 6 #define BASE_I18N_CHAR_ITERATOR_H_ | 6 #define BASE_I18N_CHAR_ITERATOR_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <string> | 8 #include <string> |
| 10 | 9 |
| 11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 12 #include "base/i18n/base_i18n_export.h" | 11 #include "base/i18n/base_i18n_export.h" |
| 13 #include "base/string16.h" | 12 #include "base/string16.h" |
| 14 | 13 |
| 15 // The CharIterator classes iterate through the characters in UTF8 and | 14 // The CharIterator classes iterate through the characters in UTF8 and |
| 16 // UTF16 strings. Example usage: | 15 // UTF16 strings. Example usage: |
| 17 // | 16 // |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // The current character. | 121 // The current character. |
| 123 int32 char_; | 122 int32 char_; |
| 124 | 123 |
| 125 DISALLOW_COPY_AND_ASSIGN(UTF16CharIterator); | 124 DISALLOW_COPY_AND_ASSIGN(UTF16CharIterator); |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 } // namespace i18n | 127 } // namespace i18n |
| 129 } // namespace base | 128 } // namespace base |
| 130 | 129 |
| 131 #endif // BASE_I18N_CHAR_ITERATOR_H_ | 130 #endif // BASE_I18N_CHAR_ITERATOR_H_ |
| OLD | NEW |