Lines Matching refs:description
654 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
675 init(description, locinfo, perror, status);
678 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
699 init(description, locinfo, perror, status);
702 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
722 init(description, info, perror, status);
725 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
745 init(description, NULL, perror, status);
748 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
769 init(description, NULL, perror, status);
1370 UnicodeString description(rules);
1371 if (!description.length()) {
1378 // description). This allows us to look for rule-set boundaries
1381 stripWhitespace(description);
1385 // and delete them from the description before the real desciption-
1387 int32_t lp = description.indexOf(gLenientParse, -1, 0);
1392 if (lp == 0 || description.charAt(lp - 1) == gSemiColon) {
1395 // the first token in the description)
1396 int lpEnd = description.indexOf(gSemiPercent, 2, lp);
1399 lpEnd = description.length() - 1;
1402 while (PatternProps::isWhiteSpace(description.charAt(lpStart))) {
1407 // from the description
1414 lenientParseRules->setTo(description, lpStart, lpEnd - lpStart);
1416 description.remove(lp, lpEnd + 1 - lp);
1420 // pre-flight parsing the description and count the number of
1424 for (int32_t p = description.indexOf(gSemiPercent, 2, 0); p != -1; p = description.indexOf(gSemiPercent, 2, p)) {
1445 // and remove it from its description. We can't actually parse
1463 for (int32_t p = description.indexOf(gSemiPercent, 2, 0); p != -1; p = description.indexOf(gSemiPercent, 2, start)) {
1464 ruleSetDescriptions[curRuleSet].setTo(description, start, p + 1 - start);
1473 ruleSetDescriptions[curRuleSet].setTo(description, start, description.length() - start);
1482 // is the last public rule set in the description (it's the last
1576 RuleBasedNumberFormat::stripWhitespace(UnicodeString& description)
1582 while (start != -1 && start < description.length()) {
1584 while (start < description.length()
1585 && PatternProps::isWhiteSpace(description.charAt(start))) {
1591 int32_t p = description.indexOf(gSemiColon, start);
1595 result.append(description, start, description.length() - start);
1598 description.length()) {
1599 result.append(description, start, p + 1 - start);
1606 // rule in the description)
1612 description.setTo(result);
1682 // rules specified in the description, and create a _new_