Lines Matching refs:description
88 NFRule::makeRules(UnicodeString& description,
105 rule1->parseRuleDescriptor(description, status);
107 // check the description to see whether there's text enclosed
109 int32_t brack1 = description.indexOf(gLeftBracket);
110 int32_t brack2 = description.indexOf(gRightBracket);
112 // if the description doesn't contain a matched pair of brackets,
114 // then leave the description alone, initialize the rule's
119 rule1->ruleText = description;
123 // if the description does contain a matched pair of brackets,
154 // if the description began with "x.x" and contains bracketed
161 // if the description began with "x.0" and contains bracketed
176 sbuf.append(description, 0, brack1);
177 if (brack2 + 1 < description.length()) {
178 sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
187 sbuf.setTo(description, 0, brack1);
188 sbuf.append(description, brack1 + 1, brack2 - brack1 - 1);
189 if (brack2 + 1 < description.length()) {
190 sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
210 * in the description) and sets the rule's base value, radix, and
211 * exponent according to the descriptor. (If the description doesn't
214 * @param description The rule's description
215 * @return If "description" included a rule descriptor, this is
216 * "description" with the descriptor and any trailing whitespace
220 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status)
222 // the description consists of a rule descriptor and a rule body,
225 int32_t p = description.indexOf(gColon);
231 // description
233 descriptor.setTo(description, 0, p);
236 while (p < description.length() && PatternProps::isWhiteSpace(description.charAt(p))) {
239 description.removeBetween(0, p);
353 if (description.length() > 0 && description.charAt(0) == gTick) {
354 description.removeBetween(0, 1);
357 // return the description with all the stuff we've just waded through
359 // return description;
479 // description didn't specify a base value. This means it
567 * necessarily be the same as the description that this rule
569 * @return A textual description of the rule
697 // In other words, if the original description had