Home | History | Annotate | Download | only in i18n

Lines Matching refs:description

648 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, 
662 init(description, locinfo, perror, status);
665 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
679 init(description, locinfo, perror, status);
682 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
695 init(description, info, perror, status);
698 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
711 init(description, NULL, perror, status);
714 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
728 init(description, NULL, perror, status);
1300 UnicodeString description(rules);
1301 if (!description.length()) {
1308 // description). This allows us to look for rule-set boundaries
1311 stripWhitespace(description);
1315 // and delete them from the description before the real desciption-
1317 int32_t lp = description.indexOf(gLenientParse);
1322 if (lp == 0 || description.charAt(lp - 1) == gSemiColon) {
1325 // the first token in the description)
1326 int lpEnd = description.indexOf(gSemiPercent, lp);
1329 lpEnd = description.length() - 1;
1332 while (uprv_isRuleWhiteSpace(description.charAt(lpStart))) {
1337 // from the description
1344 lenientParseRules->setTo(description, lpStart, lpEnd - lpStart);
1346 description.remove(lp, lpEnd + 1 - lp);
1350 // pre-flight parsing the description and count the number of
1354 for (int32_t p = description.indexOf(gSemiPercent); p != -1; p = description.indexOf(gSemiPercent, p)) {
1375 // and remove it from its description. We can't actually parse
1392 for (int32_t p = description.indexOf(gSemiPercent); p != -1; p = description.indexOf(gSemiPercent, start)) {
1393 ruleSetDescriptions[curRuleSet].setTo(description, start, p + 1 - start);
1402 ruleSetDescriptions[curRuleSet].setTo(description, start, description.length() - start);
1411 // is the last public rule set in the description (it's the last
1459 RuleBasedNumberFormat::stripWhitespace(UnicodeString& description)
1465 while (start != -1 && start < description.length()) {
1467 while (start < description.length()
1468 && uprv_isRuleWhiteSpace(description.charAt(start))) {
1474 int32_t p = description.indexOf(gSemiColon, start);
1478 result.append(description, start, description.length() - start);
1481 else if (p < description.length()) {
1482 result.append(description, start, p + 1 - start);
1489 // rule in the description)
1495 description.setTo(result);
1547 // rules specified in the description, and create a _new_