Logo Search packages:      
Sourcecode: icu version File versions

U_STABLE const char* U_EXPORT2 ucnv_getStandard ( uint16_t  n,
UErrorCode pErrorCode 
)

Gives the name of the standard at given index of standard list.

Parameters:
n index in standard list
pErrorCode result of operation
Returns:
returns the name of the standard at given index. Owned by the library. ICU 2.0

Definition at line 938 of file ucnv_io.c.

References NULL, and U_INDEX_OUTOFBOUNDS_ERROR.

                                                     {
    if (haveAliasData(pErrorCode)) {
        if (n < gMainTable.tagListSize - UCNV_NUM_HIDDEN_TAGS) {
            return GET_STRING(gMainTable.tagList[n]);
        }
        *pErrorCode = U_INDEX_OUTOFBOUNDS_ERROR;
    }

    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index