Lines Matching full:chars
382 RuleCharacterIterator chars(pattern, symbols, pos);
383 applyPattern(chars, symbols, rebuiltPat, USET_IGNORE_SPACE, NULL, status);
385 if (chars.inVariable()) {
386 // syntaxError(chars, "Extra chars in variable value");
428 * @param chars iterator over the pattern characters. Upon return
439 void UnicodeSet::applyPattern(RuleCharacterIterator& chars,
449 // Recognized special forms for chars, sets: c-c s-s s&s
472 while (mode != 2 && !chars.atEnd()) {
486 if (resemblesPropertyPattern(chars, opts)) {
500 chars.getPos(backup);
501 c = chars.next(opts, literal, ec);
506 chars.setPos(backup); // backup
512 chars.getPos(backup); // prepare to backup
513 c = chars.next(opts, literal, ec);
518 chars.getPos(backup); // prepare to backup
519 c = chars.next(opts, literal, ec);
528 chars.setPos(backup); // backup
556 // syntaxError(chars, "Char expected after operator");
580 nested->applyPattern(chars, symbols, patLocal, options, caseClosure, ec);
583 chars.skipIgnored(opts);
584 nested->applyPropertyPattern(chars, patLocal, ec);
620 // syntaxError(chars, "Missing '['");
641 // syntaxError(chars, "Trailing '&'");
656 c = chars.next(opts, literal, ec);
665 // syntaxError(chars, "'-' not after char or set");
673 // syntaxError(chars, "'&' not after set");
677 // syntaxError(chars, "'^' not after '['");
682 // syntaxError(chars, "Missing operand after operator");
694 while (!chars.atEnd()) {
695 c = chars.next(opts, literal, ec);
704 // syntaxError(chars, "Invalid multicharacter string");
725 chars.getPos(backup);
726 c = chars.next(opts, literal, ec);
731 chars.setPos(backup);
746 // syntaxError(chars, "Unquoted '$'");
756 // escaped chars ("\u4E01") and non-syntax characters
769 // syntaxError(chars, "Invalid range");
787 // syntaxError(chars, "Set expected after operator");
798 // syntaxError(chars, "Missing ']'");
803 chars.skipIgnored(opts);
1152 * @param chars iterator over the pattern characters. Upon return
1156 UBool UnicodeSet::resemblesPropertyPattern(RuleCharacterIterator& chars,
1163 chars.getPos(pos);
1164 UChar32 c = chars.next(iterOpts, literal, ec);
1166 UChar32 d = chars.next(iterOpts & ~RuleCharacterIterator::SKIP_WHITESPACE,
1171 chars.setPos(pos);
1275 * @param chars iterator over the pattern characters. Upon return
1282 void UnicodeSet::applyPropertyPattern(RuleCharacterIterator& chars,
1287 chars.lookahead(pattern);
1292 // syntaxError(chars, "Invalid property pattern");
1296 chars.jumpahead(pos.getIndex());