Lines Matching refs:match

48  * Match match = new Match();
49 * if (re.matches(text, match)) {
89 * The <code>match()</code> method does not do subsring matching
121 * <dd>This expression matches one code point in Unicode. It can match a pair of surrogates.
689 * @param match A Match instance for storing matching result.
690 * @return Offset of the start position in <VAR>target</VAR>; or -1 if not match.
692 public boolean matches(char[] target, Match match) {
693 return this.matches(target, 0, target .length , match);
703 * @param match A Match instance for storing matching result.
704 * @return Offset of the start position in <VAR>target</VAR>; or -1 if not match.
706 public boolean matches(char[] target, int start, int end, Match match) {
719 if (match != null) {
720 match.setNumberOfGroups(this.nofparen);
721 match.setSource(target);
723 match = new Match();
724 match.setNumberOfGroups(this.nofparen);
726 // a caller can not access this match instance.
728 con.match = match;
731 int matchEnd = this. match(con, this.operations, con.start, 1, this.options);
734 if (con.match != null) {
735 con.match.setBeginning(0, con.start);
736 con.match.setEnd(0, matchEnd);
752 if (con.match != null) {
753 con.match.setBeginning(0, o);
754 con.match.setEnd(0, o+this.fixedString.length());
771 //System.err.println("Non-match in fixed-string search.");
788 matchEnd = this. match(con, this.operations, con.start, 1, this.options);
797 if (0 <= (matchEnd = this. match(con, this.operations,
818 if (!range.match(ch)) {
821 if (0 <= (matchEnd = this. match(con, this.operations,
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);
875 * @param match A Match instance for storing matching result.
876 * @return Offset of the start position in <VAR>target</VAR>; or -1 if not match.
878 public boolean matches(String target, Match match) {
879 return this.matches(target, 0, target .length() , match);
888 * @param match A Match instance for storing matching result.
889 * @return Offset of the start position in <VAR>target</VAR>; or -1 if not match.
891 public boolean matches(String target, int start, int end, Match match) {
904 if (match != null) {
905 match.setNumberOfGroups(this.nofparen);
906 match.setSource(target);
908 match = new Match();
909 match.setNumberOfGroups(this.nofparen);
911 // a caller can not access this match instance.
913 con.match = match;
919 int matchEnd = this. match(con, this.operations, con.start, 1, this.options);
925 if (con.match != null) {
926 con.match.setBeginning(0, con.start);
927 con.match.setEnd(0, matchEnd);
943 if (con.match != null) {
944 con.match.setBeginning(0, o);
945 con.match.setEnd(0, o+this.fixedString.length());
962 //System.err.println("Non-match in fixed-string search.");
979 matchEnd = this.match(con, this.operations, con.start, 1, this.options);
988 if (0 <= (matchEnd = this.match(con, this.operations,
1009 if (!range.match(ch)) {
1012 if (0 <= (matchEnd = this.match(con, this.operations,
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);
1043 * @return -1 when not match; offset of the end of matched string when match.
1045 private int match(Context con, Op op, int offset, int dx, int opts) {
1121 if (!tok.match(ch)) {
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;
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);
1563 * @param match A Match instance for storing matching result.
1564 * @return Offset of the start position in <VAR>target</VAR>; or -1 if not match.
1566 public boolean matches(CharacterIterator target, Match match) {
1583 if (match != null) {
1584 match.setNumberOfGroups(this.nofparen);
1585 match.setSource(target);
1587 match = new Match();
1588 match.setNumberOfGroups(this.nofparen);
1590 // a caller can not access this match instance.
1592 con.match = match;
1595 int matchEnd = this.match(con, this.operations, con.start, 1, this.options);
1598 if (con.match != null) {
1599 con.match.setBeginning(0, con.start);
1600 con.match.setEnd(0, matchEnd);
1616 if (con.match != null) {
1617 con.match.setBeginning(0, o);
1618 con.match.setEnd(0, o+this.fixedString.length());
1635 //System.err.println("Non-match in fixed-string search.");
1652 matchEnd = this.match(con, this.operations, con.start, 1, this.options);
1661 if (0 <= (matchEnd = this.match(con, this.operations,
1682 if (!range.match(ch)) {
1685 if (0 <= (matchEnd = this.match(con, this.operations,
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);
2017 Match match;
2033 this.match = null;
2376 return (Token.getRange("IsWord", true).match(ch)) ? WT_LETTER : WT_OTHER;