Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: source/common/unicode/locid.h

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/common/unicode/listformatter.h ('k') | source/common/unicode/platform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ****************************************************************************** 2 ******************************************************************************
3 * 3 *
4 * Copyright (C) 1996-2013, International Business Machines 4 * Copyright (C) 1996-2014, 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 *
11 * Created by: Helena Shih 11 * Created by: Helena Shih
12 * 12 *
13 * Modification History: 13 * Modification History:
14 * 14 *
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 /**
498 * 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().
500 * If no likely script is known, then FALSE is returned.
501 *
502 * 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 .
504 *
505 * Returns TRUE for "ar" and "en-Hebr", FALSE for "zh" and "fa-Cyrl".
506 *
507 * @return TRUE if the locale's script is written right-to-left
508 * @draft ICU 54
509 */
510 UBool isRightToLeft() const;
511 #endif /* U_HIDE_DRAFT_API */
512
496 /** 513 /**
497 * Fills in "dispLang" with the name of this locale's language in a format s uitable for 514 * Fills in "dispLang" with the name of this locale's language in a format s uitable for
498 * user display in the default locale. For example, if the locale's languag e code is 515 * user display in the default locale. For example, if the locale's languag e code is
499 * "fr" and the default locale's language code is "en", this function would set 516 * "fr" and the default locale's language code is "en", this function would set
500 * dispLang to "French". 517 * dispLang to "French".
501 * @param dispLang Receives the language's display name. 518 * @param dispLang Receives the language's display name.
502 * @return A reference to "dispLang". 519 * @return A reference to "dispLang".
503 * @stable ICU 2.0 520 * @stable ICU 2.0
504 */ 521 */
505 UnicodeString& getDisplayLanguage(UnicodeString& dispLang) const; 522 UnicodeString& getDisplayLanguage(UnicodeString& dispLang) const;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 758
742 /** 759 /**
743 * A friend to allow the default locale to be set by either the C or C++ API . 760 * A friend to allow the default locale to be set by either the C or C++ API .
744 * @internal 761 * @internal
745 */ 762 */
746 friend Locale *locale_set_default_internal(const char *, UErrorCode& status) ; 763 friend Locale *locale_set_default_internal(const char *, UErrorCode& status) ;
747 764
748 /** 765 /**
749 * @internal 766 * @internal
750 */ 767 */
751 friend void locale_available_init(); 768 friend void U_CALLCONV locale_available_init();
752 }; 769 };
753 770
754 inline UBool 771 inline UBool
755 Locale::operator!=(const Locale& other) const 772 Locale::operator!=(const Locale& other) const
756 { 773 {
757 return !operator==(other); 774 return !operator==(other);
758 } 775 }
759 776
760 inline const char * 777 inline const char *
761 Locale::getCountry() const 778 Locale::getCountry() const
(...skipping 27 matching lines...) Expand all
789 } 806 }
790 807
791 inline UBool 808 inline UBool
792 Locale::isBogus(void) const { 809 Locale::isBogus(void) const {
793 return fIsBogus; 810 return fIsBogus;
794 } 811 }
795 812
796 U_NAMESPACE_END 813 U_NAMESPACE_END
797 814
798 #endif 815 #endif
OLDNEW
« no previous file with comments | « source/common/unicode/listformatter.h ('k') | source/common/unicode/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698