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

UnicodeString RuleBasedNumberFormat::getRuleSetName ( int32_t  index  )  const [virtual]

Return the name of the index'th public ruleSet. If index is not valid, the function returns null.

index the index of the ruleset
the name of the index'th public ruleSet. ICU 2.0

Definition at line 916 of file rbnf.cpp.

References TRUE.

Referenced by unum_getTextAttribute().

    if (localizations) {
      UnicodeString string(TRUE, localizations->getRuleSetName(index), (int32_t)-1);
      return string;
    } else if (ruleSets) {
        UnicodeString result;
        for (NFRuleSet** p = ruleSets; *p; ++p) {
            NFRuleSet* rs = *p;
            if (rs->isPublic()) {
                if (--index == -1) {
                    return result;
    UnicodeString empty;
    return empty;

Generated by  Doxygen 1.6.0   Back to index