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

void RuleBasedCollator::setLocales ( const Locale requestedLocale,
const Locale validLocale,
const Locale actualLocale 
) [protected, virtual]

Used internally by registraton to define the requested and valid locales.

Parameters:
requestedLocale the requsted locale
validLocale the valid locale
actualLocale the actual locale

For internal use only.

Reimplemented from Collator.

Definition at line 614 of file tblcoll.cpp.

References Locale::getName(), and ucollator.

                                                                                                                  {
    checkOwned();
    char* rloc  = uprv_strdup(requestedLocale.getName());
    if (rloc) {
        char* vloc = uprv_strdup(validLocale.getName());
        if (vloc) {
            char* aloc = uprv_strdup(actualLocale.getName());
            if (aloc) {
                ucol_setReqValidLocales(ucollator, rloc, vloc, aloc);
                return;
            }
            uprv_free(vloc);
        }
        uprv_free(rloc);
    }
}


Generated by  Doxygen 1.6.0   Back to index