Chromium Code Reviews| 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/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 | 16 |
| 17 class FilePath; | 17 class FilePath; |
| 18 | 18 |
| 19 namespace i18n { | 19 namespace i18n { |
| 20 | 20 |
| 21 const char16 kArabicLetterMark = 0x061C; | |
| 21 const char16 kRightToLeftMark = 0x200F; | 22 const char16 kRightToLeftMark = 0x200F; |
| 22 const char16 kLeftToRightMark = 0x200E; | 23 const char16 kLeftToRightMark = 0x200E; |
| 23 const char16 kLeftToRightEmbeddingMark = 0x202A; | 24 const char16 kLeftToRightEmbeddingMark = 0x202A; |
| 24 const char16 kRightToLeftEmbeddingMark = 0x202B; | 25 const char16 kRightToLeftEmbeddingMark = 0x202B; |
| 25 const char16 kPopDirectionalFormatting = 0x202C; | 26 const char16 kPopDirectionalFormatting = 0x202C; |
| 26 const char16 kLeftToRightOverride = 0x202D; | 27 const char16 kLeftToRightOverride = 0x202D; |
| 27 const char16 kRightToLeftOverride = 0x202E; | 28 const char16 kRightToLeftOverride = 0x202E; |
| 29 const char16 kLeftToRightIsolate = 0x2066; | |
| 30 const char16 kRightToLeftIsolate = 0x2067; | |
| 31 const char16 kFirstStrongIsolate = 0x2068; | |
| 32 const char16 kPopDirectionalIsolate = 0x2069; | |
|
Peter Kasting
2014/02/27 21:37:09
Why are the changes in this file needed?
Anuj
2014/02/27 21:55:35
Not needed. It just seemed like a related thing to
Peter Kasting
2014/02/27 22:08:38
We shouldn't declare constants we don't refer to.
Anuj
2014/02/27 22:24:51
Done.
| |
| 28 | 33 |
| 29 // Locale.java mirrored this enum TextDirection. Please keep in sync. | 34 // Locale.java mirrored this enum TextDirection. Please keep in sync. |
| 30 enum TextDirection { | 35 enum TextDirection { |
| 31 UNKNOWN_DIRECTION = 0, | 36 UNKNOWN_DIRECTION = 0, |
| 32 RIGHT_TO_LEFT = 1, | 37 RIGHT_TO_LEFT = 1, |
| 33 LEFT_TO_RIGHT = 2, | 38 LEFT_TO_RIGHT = 2, |
| 34 TEXT_DIRECTION_NUM_DIRECTIONS = 3, | 39 TEXT_DIRECTION_NUM_DIRECTIONS = 3, |
| 35 }; | 40 }; |
| 36 | 41 |
| 37 // Get the locale that the currently running process has been configured to use. | 42 // Get the locale that the currently running process has been configured to use. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 // return the text itself. Explicit bidi control characters display and have | 145 // return the text itself. Explicit bidi control characters display and have |
| 141 // semantic effect. They can be deleted so they might not always appear in a | 146 // semantic effect. They can be deleted so they might not always appear in a |
| 142 // pair. | 147 // pair. |
| 143 BASE_I18N_EXPORT string16 StripWrappingBidiControlCharacters( | 148 BASE_I18N_EXPORT string16 StripWrappingBidiControlCharacters( |
| 144 const string16& text) WARN_UNUSED_RESULT; | 149 const string16& text) WARN_UNUSED_RESULT; |
| 145 | 150 |
| 146 } // namespace i18n | 151 } // namespace i18n |
| 147 } // namespace base | 152 } // namespace base |
| 148 | 153 |
| 149 #endif // BASE_I18N_RTL_H_ | 154 #endif // BASE_I18N_RTL_H_ |
| OLD | NEW |