Logo Search packages:      
Sourcecode: icu version File versions  Download package

U_STABLE int32_t U_EXPORT2 uloc_getDisplayVariant ( const char *  locale,
const char *  displayLocale,
UChar *  variant,
int32_t  variantCapacity,
UErrorCode status 

Gets the variant name suitable for display for the specified locale.

locale the locale to get the displayable variant code with. NULL may be used to specify the default.
displayLocale Specifies the locale to be used to display the name. In other words, if the locale's language code is "en", passing Locale::getFrench() for inLocale would result in "Anglais", while passing Locale::getGerman() for inLocale would result in "Englisch". NULL may be used to specify the default.
variant the displayable variant code for localeID
variantCapacity the size of the variant buffer to store the displayable variant code with
status error information if retrieving the displayable variant code failed
the actual buffer size needed for the displayable variant code. If it's greater than variantCapacity, the returned displayable variant code will be truncated. ICU 2.0

Definition at line 422 of file locdispnames.cpp.

    return _getDisplayNameForComponent(locale, displayLocale, dest, destCapacity,
                uloc_getVariant, _kVariants, pErrorCode);

Generated by  Doxygen 1.6.0   Back to index