| Index: source/common/unicode/locid.h
|
| diff --git a/source/common/unicode/locid.h b/source/common/unicode/locid.h
|
| index 0faea9b81f3babdf7a87b353b3bdbeabac83dc70..35461929db05188e049eb8633309219061710cef 100644
|
| --- a/source/common/unicode/locid.h
|
| +++ b/source/common/unicode/locid.h
|
| @@ -1,7 +1,7 @@
|
| /*
|
| ******************************************************************************
|
| *
|
| -* Copyright (C) 1996-2013, International Business Machines
|
| +* Copyright (C) 1996-2014, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| ******************************************************************************
|
| @@ -493,6 +493,23 @@ public:
|
| */
|
| uint32_t getLCID(void) const;
|
|
|
| +#ifndef U_HIDE_DRAFT_API
|
| + /**
|
| + * Returns whether this locale's script is written right-to-left.
|
| + * If there is no script subtag, then the likely script is used, see uloc_addLikelySubtags().
|
| + * If no likely script is known, then FALSE is returned.
|
| + *
|
| + * A script is right-to-left according to the CLDR script metadata
|
| + * which corresponds to whether the script's letters have Bidi_Class=R or AL.
|
| + *
|
| + * Returns TRUE for "ar" and "en-Hebr", FALSE for "zh" and "fa-Cyrl".
|
| + *
|
| + * @return TRUE if the locale's script is written right-to-left
|
| + * @draft ICU 54
|
| + */
|
| + UBool isRightToLeft() const;
|
| +#endif /* U_HIDE_DRAFT_API */
|
| +
|
| /**
|
| * Fills in "dispLang" with the name of this locale's language in a format suitable for
|
| * user display in the default locale. For example, if the locale's language code is
|
| @@ -748,7 +765,7 @@ private:
|
| /**
|
| * @internal
|
| */
|
| - friend void locale_available_init();
|
| + friend void U_CALLCONV locale_available_init();
|
| };
|
|
|
| inline UBool
|
|
|