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

U_STABLE int32_t U_EXPORT2 uloc_canonicalize ( const char *  localeID,
char *  name,
int32_t  nameCapacity,
UErrorCode err 
)

Gets the full name for the specified locale. Note: This has the effect of 'canonicalizing' the string to a certain extent. Upper and lower case are set as needed, and if the components were in 'POSIX' format they are changed to ICU format. It does NOT map aliased names in any way. See the top of this header file.

Parameters:
localeID the locale to get the full name with
name the full name for localeID
nameCapacity the size of the name buffer to store the full name with
err error information if retrieving the full name failed
Returns:
the actual buffer size needed for the full name. If it's greater than nameCapacity, the returned full name will be truncated. ICU 2.8

Definition at line 1974 of file uloc.c.

{
    return _canonicalize(localeID, name, nameCapacity, _ULOC_CANONICALIZE, err);
}


Generated by  Doxygen 1.6.0   Back to index