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

UnicodeString RuleBasedNumberFormat::getRuleSetDisplayName ( const UnicodeString ruleSetName,
const Locale locale = Locale::getDefault() 
) [virtual]

Return the rule set display name for the provided rule set and locale. The locale is matched against the locales for which there is display name data, using normal fallback rules. If no locale matches, the default display name is returned.

Returns:
the display name for the rule set ICU 3.2
See also:
getRuleSetDisplayName

Definition at line 1017 of file rbnf.cpp.

References getRuleSetDisplayName(), UnicodeString::getTerminatedBuffer(), and UnicodeString::setToBogus().

                                                                                                        {
    if (localizations) {
        UnicodeString rsn(ruleSetName);
        int32_t ix = localizations->indexForRuleSet(rsn.getTerminatedBuffer());
        return getRuleSetDisplayName(ix, localeParam);
    }
    UnicodeString bogus;
    bogus.setToBogus();
    return bogus;
}


Generated by  Doxygen 1.6.0   Back to index