Home
last modified time | relevance | path

Searched refs:ruleSetName (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4c/source/i18n/unicode/
Drbnf.h778 virtual UnicodeString getRuleSetDisplayName(const UnicodeString& ruleSetName,
831 const UnicodeString& ruleSetName,
847 const UnicodeString& ruleSetName,
863 const UnicodeString& ruleSetName,
990 virtual void setDefaultRuleSet(const UnicodeString& ruleSetName, UErrorCode& status);
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedNumberFormat.java1094 public String getRuleSetDisplayName(String ruleSetName, ULocale loc) { in getRuleSetDisplayName() argument
1097 if (rsnames[ix].equals(ruleSetName)) { in getRuleSetDisplayName()
1105 throw new IllegalArgumentException("unrecognized rule set name: " + ruleSetName); in getRuleSetDisplayName()
1114 public String getRuleSetDisplayName(String ruleSetName) { in getRuleSetDisplayName() argument
1115 return getRuleSetDisplayName(ruleSetName, ULocale.getDefault(Category.DISPLAY)); in getRuleSetDisplayName()
1395 public void setDefaultRuleSet(String ruleSetName) { in setDefaultRuleSet() argument
1396 if (ruleSetName == null) { in setDefaultRuleSet()
1421 } else if (ruleSetName.startsWith("%%")) { in setDefaultRuleSet()
1422 throw new IllegalArgumentException("cannot use private rule set: " + ruleSetName); in setDefaultRuleSet()
1424 defaultRuleSet = findRuleSet(ruleSetName); in setDefaultRuleSet()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRuleBasedNumberFormat.java1114 public String getRuleSetDisplayName(String ruleSetName, ULocale loc) { in getRuleSetDisplayName() argument
1117 if (rsnames[ix].equals(ruleSetName)) { in getRuleSetDisplayName()
1125 throw new IllegalArgumentException("unrecognized rule set name: " + ruleSetName); in getRuleSetDisplayName()
1135 public String getRuleSetDisplayName(String ruleSetName) { in getRuleSetDisplayName() argument
1136 return getRuleSetDisplayName(ruleSetName, ULocale.getDefault(Category.DISPLAY)); in getRuleSetDisplayName()
1429 public void setDefaultRuleSet(String ruleSetName) { in setDefaultRuleSet() argument
1430 if (ruleSetName == null) { in setDefaultRuleSet()
1455 } else if (ruleSetName.startsWith("%%")) { in setDefaultRuleSet()
1456 throw new IllegalArgumentException("cannot use private rule set: " + ruleSetName); in setDefaultRuleSet()
1458 defaultRuleSet = findRuleSet(ruleSetName); in setDefaultRuleSet()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfDemo.java116 textField.setText(spelloutFormatter.format(theNumber, ruleSetName)); in createDemoFrame()
234 textField.setText(spelloutFormatter.format(theNumber, ruleSetName)); in createDemoFrame()
348 ruleSetName = ruleSetMenu.getSelectedItem(); in createDemoFrame()
392 textField.setText(spelloutFormatter.format(theNumber, ruleSetName)); in redisplay()
425 ruleSetName = ruleSetMenu.getSelectedItem(); in populateRuleSetMenu()
428 ruleSetName = ruleSetNames[0]; in populateRuleSetMenu()
452 private String ruleSetName; field in RbnfDemo
/external/icu/icu4c/source/i18n/
Drbnf.cpp1087 RuleBasedNumberFormat::getRuleSetDisplayName(const UnicodeString& ruleSetName, const Locale& locale… in getRuleSetDisplayName() argument
1089 UnicodeString rsn(ruleSetName); in getRuleSetDisplayName()
1227 const UnicodeString& ruleSetName, in format() argument
1232 return format((int64_t)number, ruleSetName, toAppendTo, pos, status); in format()
1238 const UnicodeString& ruleSetName, in format() argument
1244 if (ruleSetName.indexOf(gPercentPercent, 2, 0) == 0) { in format()
1248 NFRuleSet *rs = findRuleSet(ruleSetName, status); in format()
1260 const UnicodeString& ruleSetName, in format() argument
1266 if (ruleSetName.indexOf(gPercentPercent, 2, 0) == 0) { in format()
1270 NFRuleSet *rs = findRuleSet(ruleSetName, status); in format()
[all …]
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp257 UnicodeString ruleSetName; in TestAPI() local
267 ruleSetName = formatter->getRuleSetName(i); in TestAPI()
269 log(ruleSetName); in TestAPI()
271 intFormatResult = formatter->format(intFormatNum, ruleSetName, intFormatResult, pos1, status); in TestAPI()
272 …doubleFormatResult = formatter->format(doubleFormatNum, ruleSetName, doubleFormatResult, pos2, sta… in TestAPI()