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

U_STABLE const char* U_EXPORT2 uloc_getAvailable ( int32_t  n  ) 

Gets the specified locale from a list of all available locales. The return value is a pointer to an item of a locale name array. Both this array and the pointers it contains are owned by ICU and should not be deleted or written through by the caller. The locale name is terminated by a null pointer.

Parameters:
n the specific locale name index of the available locale list
Returns:
a specified locale name of all available locales ICU 2.0

Definition at line 172 of file locavailable.cpp.

References NULL.

{
    
    _load_installedLocales();
    
    if (offset > _installedLocalesCount)
        return NULL;
    return _installedLocales[offset];
}


Generated by  Doxygen 1.6.0   Back to index