Home | History | Annotate | Download | only in i18n

Lines Matching refs:descriptor

117     // (this also strips the rule descriptor, if any, off the
238 * This function parses the rule's rule descriptor (i.e., the base
241 * exponent according to the descriptor. (If the description doesn't
242 * include a rule descriptor, then this function sets everything to
245 * @return If "description" included a rule descriptor, this is
246 * "description" with the descriptor and any trailing whitespace
247 * stripped off. Otherwise; it's "descriptor" unchangd.
252 // the description consists of a rule descriptor and a rule body,
253 // separated by a colon. The rule descriptor is optional. If
257 // copy the descriptor out into its own string and strip it,
260 UnicodeString descriptor;
261 descriptor.setTo(description, 0, p);
269 // check first to see if the rule descriptor matches the token
272 int descriptorLength = descriptor.length();
273 UChar firstChar = descriptor.charAt(0);
274 UChar lastChar = descriptor.charAt(descriptorLength - 1);
276 // if the rule descriptor begins with a digit, it's a descriptor
284 // begin parsing the descriptor: copy digits
290 c = descriptor.charAt(p);
300 // throw new IllegalArgumentException("Illegal character in rule descriptor");
319 c = descriptor.charAt(p);
329 // throw new IllegalArgumentException("Illegal character is rule descriptor");
351 // the descriptor, that's also a syntax error.
353 while (p < descriptor.length()) {
354 c = descriptor.charAt(p);
358 // throw new IllegalArgumentException("Illegal character in rule descriptor");
366 else if (0 == descriptor.compare(gMinusX, 2)) {
372 decimalPoint = descriptor.charAt(1);
376 decimalPoint = descriptor.charAt(1);
380 decimalPoint = descriptor.charAt(1);
382 else if (descriptor.compare(gNaN, 3) == 0) {
385 else if (descriptor.compare(gInf, 3) == 0) {
691 // (whitespace after the rule descriptor is ignored; the