Lines Matching refs:chars

937         RuleCharacterIterator chars =
939 applyPattern(chars, symbols, rebuiltPat, options);
940 if (chars.inVariable()) {
941 syntaxError(chars, "Extra chars in variable value");
963 * @param chars iterator over the pattern characters. Upon return
974 void applyPattern(RuleCharacterIterator chars, SymbolTable symbols,
978 // Recognized special forms for chars, sets: c-c s-s s&s
1000 while (mode != 2 && !chars.atEnd()) {
1018 if (resemblesPropertyPattern(chars, opts)) {
1032 backup = chars.getPos(backup);
1033 c = chars.next(opts);
1034 literal = chars.isEscaped();
1038 chars.setPos(backup); // backup
1044 backup = chars.getPos(backup); // prepare to backup
1045 c = chars.next(opts);
1046 literal = chars.isEscaped();
1050 backup = chars.getPos(backup); // prepare to backup
1051 c = chars.next(opts);
1052 literal = chars.isEscaped();
1060 chars.setPos(backup); // backup
1071 syntaxError(chars, "Syntax error");
1085 syntaxError(chars, "Char expected after operator");
1102 nested.applyPattern(chars, symbols, patBuf, options);
1105 chars.skipIgnored(opts);
1106 nested.applyPropertyPattern(chars, patBuf, symbols);
1141 syntaxError(chars, "Missing '['");
1160 syntaxError(chars, "Trailing '&'");
1173 c = chars.next(opts);
1174 literal = chars.isEscaped();
1182 syntaxError(chars, "'-' not after char or set");
1188 syntaxError(chars, "'&' not after set");
1190 syntaxError(chars, "'^' not after '['");
1193 syntaxError(chars, "Missing operand after operator");
1206 while (!chars.atEnd()) {
1207 c = chars.next(opts);
1208 literal = chars.isEscaped();
1216 syntaxError(chars, "Invalid multicharacter string");
1233 backup = chars.getPos(backup);
1234 c = chars.next(opts);
1235 literal = chars.isEscaped();
1239 chars.setPos(backup);
1253 syntaxError(chars, "Unquoted '$'");
1260 // escaped chars ("\u4E01") and non-syntax characters
1273 syntaxError(chars, "Invalid range");
1288 syntaxError(chars, "Set expected after operator");
1297 syntaxError(chars, "Missing ']'");
1300 chars.skipIgnored(opts);
1315 private static void syntaxError(RuleCharacterIterator chars, String msg) {
1317 Utility.escape(chars.toString()) +
1721 * @param chars iterator over the pattern characters. Upon return
1725 private static boolean resemblesPropertyPattern(RuleCharacterIterator chars,
1729 Object pos = chars.getPos(null);
1730 int c = chars.next(iterOpts);
1732 int d = chars.next(iterOpts & ~RuleCharacterIterator.SKIP_WHITESPACE);
1736 chars.setPos(pos);
1830 * @param chars iterator over the pattern characters. Upon return
1838 private void applyPropertyPattern(RuleCharacterIterator chars,
1840 String patStr = chars.lookahead();
1844 syntaxError(chars, "Invalid property pattern");
1846 chars.jumpahead(pos.getIndex());