Logo Search packages:      
Sourcecode: icu version File versions

U_STABLE UCurrRegistryKey U_EXPORT2 ucurr_register ( const UChar *  isoCode,
const char *  locale,
UErrorCode status 
)

Register an (existing) ISO 4217 currency code for the given locale. Only the country code and the two variants EURO and PRE_EURO are recognized.

Parameters:
isoCode the three-letter ISO 4217 currency code
locale the locale for which to register this currency code
status the in/out status code
Returns:
a registry key that can be used to unregister this currency code, or NULL if there was an error. ICU 2.6

Definition at line 333 of file ucurr.cpp.

References NULL, U_SUCCESS, and ULOC_FULLNAME_CAPACITY.

{
    if (status && U_SUCCESS(*status)) {
        char id[ULOC_FULLNAME_CAPACITY];
        idForLocale(locale, id, sizeof(id), status);
        return CReg::reg(isoCode, id, status);
    }
    return NULL;
}


Generated by  Doxygen 1.6.0   Back to index