OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * | 3 * |
4 * Copyright (C) 1996-2015, International Business Machines | 4 * Copyright (C) 1996-2015, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ****************************************************************************** | 7 ****************************************************************************** |
8 * | 8 * |
9 * File locid.h | 9 * File locid.h |
10 * | 10 * |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 486 |
487 /** | 487 /** |
488 * Returns the Windows LCID value corresponding to this locale. | 488 * Returns the Windows LCID value corresponding to this locale. |
489 * This value is stored in the resource data for the locale as a one-to-four
-digit | 489 * This value is stored in the resource data for the locale as a one-to-four
-digit |
490 * hexadecimal number. If the resource is missing, in the wrong format, or | 490 * hexadecimal number. If the resource is missing, in the wrong format, or |
491 * there is no Windows LCID value that corresponds to this locale, returns 0
. | 491 * there is no Windows LCID value that corresponds to this locale, returns 0
. |
492 * @stable ICU 2.0 | 492 * @stable ICU 2.0 |
493 */ | 493 */ |
494 uint32_t getLCID(void) const; | 494 uint32_t getLCID(void) const; |
495 | 495 |
496 #ifndef U_HIDE_DRAFT_API | |
497 /** | 496 /** |
498 * Returns whether this locale's script is written right-to-left. | 497 * Returns whether this locale's script is written right-to-left. |
499 * If there is no script subtag, then the likely script is used, see uloc_ad
dLikelySubtags(). | 498 * If there is no script subtag, then the likely script is used, see uloc_ad
dLikelySubtags(). |
500 * If no likely script is known, then FALSE is returned. | 499 * If no likely script is known, then FALSE is returned. |
501 * | 500 * |
502 * A script is right-to-left according to the CLDR script metadata | 501 * A script is right-to-left according to the CLDR script metadata |
503 * which corresponds to whether the script's letters have Bidi_Class=R or AL
. | 502 * which corresponds to whether the script's letters have Bidi_Class=R or AL
. |
504 * | 503 * |
505 * Returns TRUE for "ar" and "en-Hebr", FALSE for "zh" and "fa-Cyrl". | 504 * Returns TRUE for "ar" and "en-Hebr", FALSE for "zh" and "fa-Cyrl". |
506 * | 505 * |
507 * @return TRUE if the locale's script is written right-to-left | 506 * @return TRUE if the locale's script is written right-to-left |
508 * @draft ICU 54 | 507 * @stable ICU 54 |
509 */ | 508 */ |
510 UBool isRightToLeft() const; | 509 UBool isRightToLeft() const; |
511 #endif /* U_HIDE_DRAFT_API */ | |
512 | 510 |
513 /** | 511 /** |
514 * Fills in "dispLang" with the name of this locale's language in a format s
uitable for | 512 * Fills in "dispLang" with the name of this locale's language in a format s
uitable for |
515 * user display in the default locale. For example, if the locale's languag
e code is | 513 * user display in the default locale. For example, if the locale's languag
e code is |
516 * "fr" and the default locale's language code is "en", this function would
set | 514 * "fr" and the default locale's language code is "en", this function would
set |
517 * dispLang to "French". | 515 * dispLang to "French". |
518 * @param dispLang Receives the language's display name. | 516 * @param dispLang Receives the language's display name. |
519 * @return A reference to "dispLang". | 517 * @return A reference to "dispLang". |
520 * @stable ICU 2.0 | 518 * @stable ICU 2.0 |
521 */ | 519 */ |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 } | 803 } |
806 | 804 |
807 inline UBool | 805 inline UBool |
808 Locale::isBogus(void) const { | 806 Locale::isBogus(void) const { |
809 return fIsBogus; | 807 return fIsBogus; |
810 } | 808 } |
811 | 809 |
812 U_NAMESPACE_END | 810 U_NAMESPACE_END |
813 | 811 |
814 #endif | 812 #endif |
OLD | NEW |