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_RTL_H_ | 5 #ifndef BASE_I18N_RTL_H_ |
6 #define BASE_I18N_RTL_H_ | 6 #define BASE_I18N_RTL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/i18n/base_i18n_export.h" | 11 #include "base/i18n/base_i18n_export.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 | 14 |
| 15 namespace base { |
| 16 |
15 class FilePath; | 17 class FilePath; |
16 | 18 |
17 namespace base { | |
18 namespace i18n { | 19 namespace i18n { |
19 | 20 |
20 const char16 kRightToLeftMark = 0x200F; | 21 const char16 kRightToLeftMark = 0x200F; |
21 const char16 kLeftToRightMark = 0x200E; | 22 const char16 kLeftToRightMark = 0x200E; |
22 const char16 kLeftToRightEmbeddingMark = 0x202A; | 23 const char16 kLeftToRightEmbeddingMark = 0x202A; |
23 const char16 kRightToLeftEmbeddingMark = 0x202B; | 24 const char16 kRightToLeftEmbeddingMark = 0x202B; |
24 const char16 kPopDirectionalFormatting = 0x202C; | 25 const char16 kPopDirectionalFormatting = 0x202C; |
25 const char16 kLeftToRightOverride = 0x202D; | 26 const char16 kLeftToRightOverride = 0x202D; |
26 const char16 kRightToLeftOverride = 0x202E; | 27 const char16 kRightToLeftOverride = 0x202E; |
27 | 28 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // return the text itself. Explicit bidi control characters display and have | 128 // return the text itself. Explicit bidi control characters display and have |
128 // semantic effect. They can be deleted so they might not always appear in a | 129 // semantic effect. They can be deleted so they might not always appear in a |
129 // pair. | 130 // pair. |
130 BASE_I18N_EXPORT string16 StripWrappingBidiControlCharacters( | 131 BASE_I18N_EXPORT string16 StripWrappingBidiControlCharacters( |
131 const string16& text) WARN_UNUSED_RESULT; | 132 const string16& text) WARN_UNUSED_RESULT; |
132 | 133 |
133 } // namespace i18n | 134 } // namespace i18n |
134 } // namespace base | 135 } // namespace base |
135 | 136 |
136 #endif // BASE_I18N_RTL_H_ | 137 #endif // BASE_I18N_RTL_H_ |
OLD | NEW |