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

UnicodeString RuleBasedNumberFormat::getDefaultRuleSetName (  )  const [virtual]

Return the name of the current default rule set. If the current rule set is not public, returns a bogus (and empty) UnicodeString.

Returns:
the name of the current default rule set ICU 3.0

Definition at line 1243 of file rbnf.cpp.

References UnicodeString::setToBogus().

Referenced by unum_getTextAttribute().

                                                   {
  UnicodeString result;
  if (defaultRuleSet && defaultRuleSet->isPublic()) {
    defaultRuleSet->getName(result);
  } else {
    result.setToBogus();
  }
  return result;
}


Generated by  Doxygen 1.6.0   Back to index