Lines Matching defs:matcher

359     // Internal matcher used for finding delimiters
360 private Matcher matcher;
582 matcher = delimPattern.matcher(buf);
583 matcher.useTransparentBounds(true);
584 matcher.useAnchoringBounds(false);
803 hasNextResult = matcher.group();
804 hasNextPosition = matcher.end();
805 hasNextPattern = matcher.pattern();
810 hasNextPosition = matcher.end();
811 hasNextPattern = matcher.pattern();
891 matcher.reset(buf);
917 matcher.usePattern(delimPattern);
918 matcher.region(position, buf.limit());
921 if (matcher.lookingAt())
922 position = matcher.end();
950 matcher.usePattern(delimPattern);
952 matcher.region(position, buf.limit());
953 if (matcher.lookingAt()) {
956 if (matcher.hitEnd() && !sourceClosed) {
960 // The delims were whole and the matcher should skip them
962 position = matcher.end();
980 matcher.region(position, buf.limit());
981 boolean foundNextDelim = matcher.find();
982 if (foundNextDelim && (matcher.end() == position)) {
986 foundNextDelim = matcher.find();
995 if (matcher.requireEnd() && !sourceClosed) {
999 int tokenEnd = matcher.start();
1006 matcher.usePattern(pattern);
1007 matcher.region(position, tokenEnd);
1008 if (matcher.matches()) {
1009 String s = matcher.group();
1010 position = matcher.end();
1025 matcher.usePattern(pattern);
1026 matcher.region(position, buf.limit());
1027 if (matcher.matches()) {
1028 String s = matcher.group();
1029 position = matcher.end();
1046 matcher.usePattern(pattern);
1055 matcher.region(position, searchLimit);
1056 if (matcher.find()) {
1057 if (matcher.hitEnd() && (!sourceClosed)) {
1065 if ((searchLimit == horizonLimit) && matcher.requireEnd()) {
1074 position = matcher.end();
1075 return matcher.group();
1092 matcher.usePattern(pattern);
1093 matcher.region(position, buf.limit());
1094 if (matcher.lookingAt()) {
1095 if (matcher.hitEnd() && (!sourceClosed)) {
1100 position = matcher.end();
1101 return matcher.group();
1339 return matcher.toMatchResult();
1643 endPosition = matcher.start();
1769 position = matcher.end();
1856 String s = (matcher.group(SIMPLE_GROUP_INDEX) == null) ?
1925 if (matcher.group(SIMPLE_GROUP_INDEX) == null)
1929 position = matcher.start(); // don't skip bad token
1962 String s = (matcher.group(SIMPLE_GROUP_INDEX) == null) ?
2031 if (matcher.group(SIMPLE_GROUP_INDEX) == null)
2035 position = matcher.start(); // don't skip bad token
2068 String s = (matcher.group(SIMPLE_GROUP_INDEX) == null) ?
2161 if (matcher.group(SIMPLE_GROUP_INDEX) == null)
2165 position = matcher.start(); // don't skip bad token
2198 String s = (matcher.group(SIMPLE_GROUP_INDEX) == null) ?
2266 if (matcher.group(SIMPLE_GROUP_INDEX) == null)
2270 position = matcher.start(); // don't skip bad token
2307 Matcher m = NON_ASCII_DIGIT.matcher(result);
2390 position = matcher.start(); // don't skip bad token
2458 position = matcher.start(); // don't skip bad token
2495 String s = (matcher.group(SIMPLE_GROUP_INDEX) == null) ?
2560 if (matcher.group(SIMPLE_GROUP_INDEX) == null)
2564 position = matcher.start(); // don't skip bad token
2627 position = matcher.start(); // don't skip bad token