Home | History | Annotate | Download | only in i18n

Lines Matching refs:description

90 NFRule::makeRules(UnicodeString& description,
107 rule1->parseRuleDescriptor(description, status);
109 // check the description to see whether there's text enclosed
111 int32_t brack1 = description.indexOf(gLeftBracket);
112 int32_t brack2 = description.indexOf(gRightBracket);
114 // if the description doesn't contain a matched pair of brackets,
116 // then leave the description alone, initialize the rule's
121 rule1->ruleText = description;
125 // if the description does contain a matched pair of brackets,
156 // if the description began with "x.x" and contains bracketed
163 // if the description began with "x.0" and contains bracketed
178 sbuf.append(description, 0, brack1);
179 if (brack2 + 1 < description.length()) {
180 sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
189 sbuf.setTo(description, 0, brack1);
190 sbuf.append(description, brack1 + 1, brack2 - brack1 - 1);
191 if (brack2 + 1 < description.length()) {
192 sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
212 * in the description) and sets the rule's base value, radix, and
213 * exponent according to the descriptor. (If the description doesn't
216 * @param description The rule's description
217 * @return If "description" included a rule descriptor, this is
218 * "description" with the descriptor and any trailing whitespace
222 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status)
224 // the description consists of a rule descriptor and a rule body,
227 int32_t p = description.indexOf(gColon);
233 // description
235 descriptor.setTo(description, 0, p);
238 while (p < description.length() && uprv_isRuleWhiteSpace(description.charAt(p))) {
241 description.removeBetween(0, p);
355 if (description.length() > 0 && description.charAt(0) == gTick) {
356 description.removeBetween(0, 1);
359 // return the description with all the stuff we've just waded through
361 // return description;
481 // description didn't specify a base value. This means it
569 * necessarily be the same as the description that this rule
571 * @return A textual description of the rule
699 // In other words, if the original description had