Formats the specified 64-bit number using the named ruleset.
Definition at line 1097 of file rbnf.cpp. References UnicodeString::indexOf(), UnicodeString::length(), U_ILLEGAL_ARGUMENT_ERROR, and U_SUCCESS. { if (U_SUCCESS(status)) { if (ruleSetName.indexOf(gPercentPercent) == 0) { // throw new IllegalArgumentException("Can't use internal rule set"); status = U_ILLEGAL_ARGUMENT_ERROR; } else { NFRuleSet *rs = findRuleSet(ruleSetName, status); if (rs) { rs->format(number, toAppendTo, toAppendTo.length()); } } } return toAppendTo; }
|