ICU 76.1 76.1
|
C API: Display options (enum types, values, helper functions) More...
Go to the source code of this file.
Typedefs | |
typedef enum UDisplayOptionsGrammaticalCase | UDisplayOptionsGrammaticalCase |
Represents all the grammatical cases that are supported by CLDR. | |
typedef enum UDisplayOptionsPluralCategory | UDisplayOptionsPluralCategory |
Standard CLDR plural form/category constants. | |
typedef enum UDisplayOptionsNounClass | UDisplayOptionsNounClass |
Represents all the grammatical noun classes that are supported by CLDR. | |
typedef enum UDisplayOptionsCapitalization | UDisplayOptionsCapitalization |
Represents all the capitalization options. | |
typedef enum UDisplayOptionsNameStyle | UDisplayOptionsNameStyle |
Represents all the dialect handlings. | |
typedef enum UDisplayOptionsDisplayLength | UDisplayOptionsDisplayLength |
Represents all the display lengths. | |
typedef enum UDisplayOptionsSubstituteHandling | UDisplayOptionsSubstituteHandling |
Represents all the substitute handling. | |
Functions | |
U_CAPI const char * | udispopt_getGrammaticalCaseIdentifier (UDisplayOptionsGrammaticalCase grammaticalCase) |
U_CAPI UDisplayOptionsGrammaticalCase | udispopt_fromGrammaticalCaseIdentifier (const char *identifier) |
U_CAPI const char * | udispopt_getPluralCategoryIdentifier (UDisplayOptionsPluralCategory pluralCategory) |
U_CAPI UDisplayOptionsPluralCategory | udispopt_fromPluralCategoryIdentifier (const char *identifier) |
U_CAPI const char * | udispopt_getNounClassIdentifier (UDisplayOptionsNounClass nounClass) |
U_CAPI UDisplayOptionsNounClass | udispopt_fromNounClassIdentifier (const char *identifier) |
C API: Display options (enum types, values, helper functions)
These display options are designed to be used in class DisplayOptions as a more modern version of the UDisplayContext mechanism.
Definition in file udisplayoptions.h.
Represents all the capitalization options.
typedef enum UDisplayOptionsDisplayLength UDisplayOptionsDisplayLength |
Represents all the display lengths.
Represents all the grammatical cases that are supported by CLDR.
typedef enum UDisplayOptionsNameStyle UDisplayOptionsNameStyle |
Represents all the dialect handlings.
typedef enum UDisplayOptionsNounClass UDisplayOptionsNounClass |
Represents all the grammatical noun classes that are supported by CLDR.
Standard CLDR plural form/category constants.
See https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules
Represents all the substitute handling.
Represents all the capitalization options.
Enumerator | |
---|---|
UDISPOPT_CAPITALIZATION_UNDEFINED | A possible setting for Capitalization. The capitalization context to be used is unknown (this is the default value).
|
UDISPOPT_CAPITALIZATION_BEGINNING_OF_SENTENCE | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the beginning of a sentence.
|
UDISPOPT_CAPITALIZATION_MIDDLE_OF_SENTENCE | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for the middle of a sentence.
|
UDISPOPT_CAPITALIZATION_STANDALONE | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for stand-alone usage such as an isolated name on a calendar page.
|
UDISPOPT_CAPITALIZATION_UI_LIST_OR_MENU | The capitalization context if a date, date symbol or display name is to be formatted with capitalization appropriate for a user-interface list or menu item.
|
Definition at line 183 of file udisplayoptions.h.
Represents all the display lengths.
Enumerator | |
---|---|
UDISPOPT_DISPLAY_LENGTH_UNDEFINED | A possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value).
|
UDISPOPT_DISPLAY_LENGTH_FULL | Uses full names when generating a locale name, e.g. "United States" for US.
|
UDISPOPT_DISPLAY_LENGTH_SHORT | Use short names when generating a locale name, e.g. "U.S." for US.
|
Definition at line 262 of file udisplayoptions.h.
Represents all the grammatical cases that are supported by CLDR.
Enumerator | |
---|---|
UDISPOPT_GRAMMATICAL_CASE_UNDEFINED | A possible setting for GrammaticalCase. The grammatical case context to be used is unknown (this is the default value).
|
UDISPOPT_GRAMMATICAL_CASE_ABLATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_ACCUSATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_COMITATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_DATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_ERGATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_GENITIVE |
|
UDISPOPT_GRAMMATICAL_CASE_INSTRUMENTAL |
|
UDISPOPT_GRAMMATICAL_CASE_LOCATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_LOCATIVE_COPULATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_NOMINATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_OBLIQUE |
|
UDISPOPT_GRAMMATICAL_CASE_PREPOSITIONAL |
|
UDISPOPT_GRAMMATICAL_CASE_SOCIATIVE |
|
UDISPOPT_GRAMMATICAL_CASE_VOCATIVE |
|
Definition at line 26 of file udisplayoptions.h.
Represents all the dialect handlings.
Enumerator | |
---|---|
UDISPOPT_NAME_STYLE_UNDEFINED | A possible setting for NameStyle. The NameStyle context to be used is unknown (this is the default value).
|
UDISPOPT_NAME_STYLE_STANDARD_NAMES | Use standard names when generating a locale name, e.g. en_GB displays as 'English (United Kingdom)'.
|
UDISPOPT_NAME_STYLE_DIALECT_NAMES | Use dialect names, when generating a locale name, e.g. en_GB displays as 'British English'.
|
Definition at line 231 of file udisplayoptions.h.
Represents all the grammatical noun classes that are supported by CLDR.
Enumerator | |
---|---|
UDISPOPT_NOUN_CLASS_UNDEFINED | A possible setting for NounClass. The noun class case context to be used is unknown (this is the default value).
|
UDISPOPT_NOUN_CLASS_OTHER |
|
UDISPOPT_NOUN_CLASS_NEUTER |
|
UDISPOPT_NOUN_CLASS_FEMININE |
|
UDISPOPT_NOUN_CLASS_MASCULINE |
|
UDISPOPT_NOUN_CLASS_ANIMATE |
|
UDISPOPT_NOUN_CLASS_INANIMATE |
|
UDISPOPT_NOUN_CLASS_PERSONAL |
|
UDISPOPT_NOUN_CLASS_COMMON |
|
Definition at line 134 of file udisplayoptions.h.
Standard CLDR plural form/category constants.
See https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules
Enumerator | |
---|---|
UDISPOPT_PLURAL_CATEGORY_UNDEFINED | A possible setting for PluralCategory. The plural category case context to be used is unknown (this is the default value).
|
UDISPOPT_PLURAL_CATEGORY_ZERO |
|
UDISPOPT_PLURAL_CATEGORY_ONE |
|
UDISPOPT_PLURAL_CATEGORY_TWO |
|
UDISPOPT_PLURAL_CATEGORY_FEW |
|
UDISPOPT_PLURAL_CATEGORY_MANY |
|
UDISPOPT_PLURAL_CATEGORY_OTHER |
|
Definition at line 87 of file udisplayoptions.h.
Represents all the substitute handling.
Enumerator | |
---|---|
UDISPOPT_SUBSTITUTE_HANDLING_UNDEFINED | A possible setting for SubstituteHandling. The SubstituteHandling context to be used is unknown (this is the default value).
|
UDISPOPT_SUBSTITUTE_HANDLING_SUBSTITUTE | Returns a fallback value (e.g., the input code) when no data is available. This is the default behaviour.
|
UDISPOPT_SUBSTITUTE_HANDLING_NO_SUBSTITUTE | Returns a null value when no data is available.
|
Definition at line 293 of file udisplayoptions.h.
U_CAPI UDisplayOptionsGrammaticalCase udispopt_fromGrammaticalCaseIdentifier | ( | const char * | identifier | ) |
identifier | in lower case such as "dative" or "nominative" |
UDISPOPT_GRAMMATICAL_CASE_UNDEFINED
U_CAPI UDisplayOptionsNounClass udispopt_fromNounClassIdentifier | ( | const char * | identifier | ) |
identifier | in lower case such as "feminine" or "masculine" |
UDISPOPT_NOUN_CLASS_UNDEFINED
U_CAPI UDisplayOptionsPluralCategory udispopt_fromPluralCategoryIdentifier | ( | const char * | identifier | ) |
identifier | for example "few" or "other" |
UDISPOPT_PLURAL_CATEGORY_UNDEFINED
U_CAPI const char * udispopt_getGrammaticalCaseIdentifier | ( | UDisplayOptionsGrammaticalCase | grammaticalCase | ) |
grammaticalCase | The grammatical case. |
U_CAPI const char * udispopt_getNounClassIdentifier | ( | UDisplayOptionsNounClass | nounClass | ) |
nounClass | The noun class. |
U_CAPI const char * udispopt_getPluralCategoryIdentifier | ( | UDisplayOptionsPluralCategory | pluralCategory | ) |
pluralCategory | The plural category. |