summaryrefslogtreecommitdiffstats
path: root/chrome/common/l10n_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/l10n_util.h')
-rw-r--r--chrome/common/l10n_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/l10n_util.h b/chrome/common/l10n_util.h
index 0c67712..c0a5d0d 100644
--- a/chrome/common/l10n_util.h
+++ b/chrome/common/l10n_util.h
@@ -116,6 +116,14 @@ enum TextDirection {
// * UNKNOWN_DIRECTION: unknown (or error).
TextDirection GetTextDirection();
+// Given the string in |text|, returns the directionality of the first
+// character with strong directionality in the string. If no character in the
+// text has strong directionality, LEFT_TO_RIGHT is returned. The Bidi
+// character types L, LRE, LRO, R, AL, RLE, and RLO are considered as strong
+// directionality characters. Please refer to http://unicode.org/reports/tr9/
+// for more information.
+TextDirection GetFirstStrongCharacterDirection(const std::wstring& text);
+
// Given the string in |text|, this function creates a copy of the string with
// the appropriate Unicode formatting marks that mark the string direction
// (either left-to-right or right-to-left). The new string is returned in