Lines Matching refs:description
105 NFRule::makeRules(UnicodeString& description,
116 NFRule* rule1 = new NFRule(rbnf, description, status);
122 description = rule1->ruleText;
124 // check the description to see whether there's text enclosed
126 int32_t brack1 = description.indexOf(gLeftBracket);
127 int32_t brack2 = brack1 < 0 ? -1 : description.indexOf(gRightBracket);
129 // if the description doesn't contain a matched pair of brackets,
131 // then leave the description alone, initialize the rule's
139 rule1->extractSubstitutions(owner, description, predecessor, status);
142 // if the description does contain a matched pair of brackets,
173 // if the description began with "x.x" and contains bracketed
180 // if the description began with "x.0" and contains bracketed
195 sbuf.append(description, 0, brack1);
196 if (brack2 + 1 < description.length()) {
197 sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
205 sbuf.setTo(description, 0, brack1);
206 sbuf.append(description, brack1 + 1, brack2 - brack1 - 1);
207 if (brack2 + 1 < description.length()) {
208 sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
237 * in the description) and sets the rule's base value, radix, and
238 * exponent according to the descriptor. (If the description doesn't
241 * @param description The rule's description
242 * @return If "description" included a rule descriptor, this is
243 * "description" with the descriptor and any trailing whitespace
247 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status)
249 // the description consists of a rule descriptor and a rule body,
252 int32_t p = description.indexOf(gColon);
256 // description
258 descriptor.setTo(description, 0, p);
261 while (p < description.length() && PatternProps::isWhiteSpace(description.charAt(p))) {
264 description.removeBetween(0, p);
392 if (description.length() > 0 && description.charAt(0) == gTick) {
393 description.removeBetween(0, 1);
396 // return the description with all the stuff we've just waded through
398 // return description;
546 // description didn't specify a base value. This means it
644 * necessarily be the same as the description that this rule
646 * @return A textual description of the rule
834 // In other words, if the original description had