Lines Matching refs:con

714         Context con = null;
716 con = this.context.inuse ? new Context() : this.context;
717 con.reset(target, start, end, this.numberOfClosures);
728 con.match = match;
731 int matchEnd = this. match(con, this.operations, con.start, 1, this.options);
733 if (matchEnd == con.limit) {
734 if (con.match != null) {
735 con.match.setBeginning(0, con.start);
736 con.match.setEnd(0, matchEnd);
738 con.setInUse(false);
750 int o = this.fixedStringTable.matches(target, con.start, con.limit);
752 if (con.match != null) {
753 con.match.setBeginning(0, o);
754 con.match.setEnd(0, o+this.fixedString.length());
756 con.setInUse(false);
759 con.setInUse(false);
769 int o = this.fixedStringTable.matches(target, con.start, con.limit);
772 con.setInUse(false);
777 int limit = con.limit-this.minlength;
787 matchStart = con.start;
788 matchEnd = this. match(con, this.operations, con.start, 1, this.options);
791 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
797 if (0 <= (matchEnd = this. match(con, this.operations,
813 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
815 if (REUtil.isHighSurrogate(ch) && matchStart+1 < con.limit) {
821 if (0 <= (matchEnd = this. match(con, this.operations,
832 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
833 if (0 <= (matchEnd = this. match(con, this.operations, matchStart, 1, this.options)))
839 if (con.match != null) {
840 con.match.setBeginning(0, matchStart);
841 con.match.setEnd(0, matchEnd);
843 con.setInUse(false);
846 con.setInUse(false);
899 Context con = null;
901 con = this.context.inuse ? new Context() : this.context;
902 con.reset(target, start, end, this.numberOfClosures);
913 con.match = match;
919 int matchEnd = this. match(con, this.operations, con.start, 1, this.options);
922 System.err.println("con.limit="+con.limit);
924 if (matchEnd == con.limit) {
925 if (con.match != null) {
926 con.match.setBeginning(0, con.start);
927 con.match.setEnd(0, matchEnd);
929 con.setInUse(false);
941 int o = this.fixedStringTable.matches(target, con.start, con.limit);
943 if (con.match != null) {
944 con.match.setBeginning(0, o);
945 con.match.setEnd(0, o+this.fixedString.length());
947 con.setInUse(false);
950 con.setInUse(false);
960 int o = this.fixedStringTable.matches(target, con.start, con.limit);
963 con.setInUse(false);
968 int limit = con.limit-this.minlength;
978 matchStart = con.start;
979 matchEnd = this.match(con, this.operations, con.start, 1, this.options);
982 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
988 if (0 <= (matchEnd = this.match(con, this.operations,
1004 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
1006 if (REUtil.isHighSurrogate(ch) && matchStart+1 < con.limit) {
1012 if (0 <= (matchEnd = this.match(con, this.operations,
1023 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
1024 if (0 <= (matchEnd = this.match(con, this.operations, matchStart, 1, this.options)))
1030 if (con.match != null) {
1031 con.match.setBeginning(0, matchStart);
1032 con.match.setEnd(0, matchEnd);
1034 con.setInUse(false);
1037 con.setInUse(false);
1045 private int match(Context con, Op op, int offset, int dx, int opts) {
1046 final ExpressionTarget target = con.target;
1054 if (op == null || offset > con.limit || offset < con.start) {
1056 retValue = isSet(opts, XMLSCHEMA_MODE) && offset != con.limit ? -1 : offset;
1070 if (o1 >= con.limit || o1 < 0 || !matchChar(op.getData(), target.charAt(o1), isSetIgnoreCase)) {
1082 if (o1 >= con.limit || o1 < 0) {
1087 if (REUtil.isHighSurrogate(target.charAt(o1)) && o1+dx >= 0 && o1+dx < con.limit) {
1093 if (REUtil.isHighSurrogate(ch) && o1+dx >= 0 && o1+dx < con.limit) {
1111 if (o1 >= con.limit || o1 < 0) {
1116 if (REUtil.isHighSurrogate(ch) && o1+dx < con.limit && o1+dx >=0) {
1132 if (!matchAnchor(target, op, con, offset, opts)) {
1146 if (con.match.getBeginning(refno) < 0 || con.match.getEnd(refno) < 0) {
1150 int o2 = con.match.getBeginning(refno);
1151 int literallen = con.match.getEnd(refno)-o2;
1153 if (!target.regionMatches(isSetIgnoreCase, offset, con.limit, o2, literallen)) {
1160 if (!target.regionMatches(isSetIgnoreCase, offset-literallen, con.limit, o2, literallen)) {
1175 if (!target.regionMatches(isSetIgnoreCase, offset, con.limit, literal, literallen)) {
1182 if (!target.regionMatches(isSetIgnoreCase, offset-literallen, con.limit, literal, literallen)) {
1196 if (con.closureContexts[id].contains(offset)) {
1201 con.closureContexts[id].addOffset(offset);
1237 if (con.match != null) {
1239 dataStack.push(con.match.getBeginning(refno));
1240 con.match.setBeginning(refno, offset);
1244 dataStack.push(con.match.getEnd(index));
1245 con.match.setEnd(index, offset);
1295 if (con.match.getBeginning(cop.refNumber) >= 0
1296 && con.match.getEnd(cop.refNumber) >= 0) {
1373 con.match.setBeginning(refno, saved);
1376 con.match.setEnd(-refno, saved);
1444 boolean matchAnchor(ExpressionTarget target, Op op, Context con, int offset, int opts) {
1449 if (!(offset == con.start
1450 || offset > con.start && offset < con.limit && isEOLChar(target.charAt(offset-1))))
1453 if (offset != con.start)
1460 if (!(offset == con.start
1461 || offset > con.start && isEOLChar(target.charAt(offset-1))))
1467 if (!(offset == con.limit
1468 || offset < con.limit && isEOLChar(target.charAt(offset))))
1471 if (!(offset == con.limit
1472 || offset+1 == con.limit && isEOLChar(target.charAt(offset))
1473 || offset+2 == con.limit && target.charAt(offset) == CARRIAGE_RETURN
1480 if (offset != con.start) return false;
1484 if (!(offset == con.limit
1485 || offset+1 == con.limit && isEOLChar(target.charAt(offset))
1486 || offset+2 == con.limit && target.charAt(offset) == CARRIAGE_RETURN
1492 if (offset != con.limit) return false;
1496 if (con.length == 0)
1499 int after = getWordType(target, con.start, con.limit, offset, opts);
1501 int before = getPreviousWordType(target, con.start, con.limit, offset, opts);
1507 if (con.length == 0)
1510 int after = getWordType(target, con.start, con.limit, offset, opts);
1512 || after == getPreviousWordType(target, con.start, con.limit, offset, opts);
1518 if (con.length == 0 || offset == con.limit) return false;
1519 if (getWordType(target, con.start, con.limit, offset, opts) != WT_LETTER
1520 || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_OTHER)
1525 if (con.length == 0 || offset == con.start) return false;
1526 if (getWordType(target, con.start, con.limit, offset, opts) != WT_OTHER
1527 || getPreviousWordType(target, con.start, con.limit, offset, opts) != WT_LETTER)
1578 Context con = null;
1580 con = this.context.inuse ? new Context() : this.context;
1581 con.reset(target, start, end, this.numberOfClosures);
1592 con.match = match;
1595 int matchEnd = this.match(con, this.operations, con.start, 1, this.options);
1597 if (matchEnd == con.limit) {
1598 if (con.match != null) {
1599 con.match.setBeginning(0, con.start);
1600 con.match.setEnd(0, matchEnd);
1602 con.setInUse(false);
1614 int o = this.fixedStringTable.matches(target, con.start, con.limit);
1616 if (con.match != null) {
1617 con.match.setBeginning(0, o);
1618 con.match.setEnd(0, o+this.fixedString.length());
1620 con.setInUse(false);
1623 con.setInUse(false);
1633 int o = this.fixedStringTable.matches(target, con.start, con.limit);
1636 con.setInUse(false);
1641 int limit = con.limit-this.minlength;
1651 matchStart = con.start;
1652 matchEnd = this.match(con, this.operations, con.start, 1, this.options);
1655 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
1661 if (0 <= (matchEnd = this.match(con, this.operations,
1677 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
1679 if (REUtil.isHighSurrogate(ch) && matchStart+1 < con.limit) {
1685 if (0 <= (matchEnd = this.match(con, this.operations,
1696 for (matchStart = con.start; matchStart <= limit; matchStart ++) {
1697 if (0 <= (matchEnd = this. match(con, this.operations, matchStart, 1, this.options)))
1703 if (con.match != null) {
1704 con.match.setBeginning(0, matchStart);
1705 con.match.setEnd(0, matchEnd);
1707 con.setInUse(false);
1710 con.setInUse(false);