Home | History | Annotate | Download | only in i18n

Lines Matching refs:description

650 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, 
664 init(description, locinfo, perror, status);
667 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
681 init(description, locinfo, perror, status);
684 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
697 init(description, info, perror, status);
700 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
713 init(description, NULL, perror, status);
716 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description,
730 init(description, NULL, perror, status);
1302 UnicodeString description(rules);
1303 if (!description.length()) {
1310 // description). This allows us to look for rule-set boundaries
1313 stripWhitespace(description);
1317 // and delete them from the description before the real desciption-
1319 int32_t lp = description.indexOf(gLenientParse);
1324 if (lp == 0 || description.charAt(lp - 1) == gSemiColon) {
1327 // the first token in the description)
1328 int lpEnd = description.indexOf(gSemiPercent, lp);
1331 lpEnd = description.length() - 1;
1334 while (uprv_isRuleWhiteSpace(description.charAt(lpStart))) {
1339 // from the description
1346 lenientParseRules->setTo(description, lpStart, lpEnd - lpStart);
1348 description.remove(lp, lpEnd + 1 - lp);
1352 // pre-flight parsing the description and count the number of
1356 for (int32_t p = description.indexOf(gSemiPercent); p != -1; p = description.indexOf(gSemiPercent, p)) {
1377 // and remove it from its description. We can't actually parse
1394 for (int32_t p = description.indexOf(gSemiPercent); p != -1; p = description.indexOf(gSemiPercent, start)) {
1395 ruleSetDescriptions[curRuleSet].setTo(description, start, p + 1 - start);
1404 ruleSetDescriptions[curRuleSet].setTo(description, start, description.length() - start);
1413 // is the last public rule set in the description (it's the last
1461 RuleBasedNumberFormat::stripWhitespace(UnicodeString& description)
1467 while (start != -1 && start < description.length()) {
1469 while (start < description.length()
1470 && uprv_isRuleWhiteSpace(description.charAt(start))) {
1476 int32_t p = description.indexOf(gSemiColon, start);
1480 result.append(description, start, description.length() - start);
1483 else if (p < description.length()) {
1484 result.append(description, start, p + 1 - start);
1491 // rule in the description)
1497 description.setTo(result);
1549 // rules specified in the description, and create a _new_