2 // This software is now distributed according to
\r
3 // the Lesser Gnu Public License. Please see
\r
4 // http://www.gnu.org/copyleft/lesser.txt for
\r
6 // -- Happy Computing!
\r
8 package com.stevesoft.pat;
\r
11 /** This class is used to implement the Transformer
\r
12 @see com.stevesoft.pat.Transform
\r
14 class TransPat extends Pattern {
\r
15 Regex[] ra = new Regex[10];
\r
18 public String toString() {
\r
19 return "(?#TransPat)";
\r
24 int lastMatchedTo = -1;
\r
25 public int matchInternal(int pos,Pthings pt) {
\r
26 for(int i=0;i<ra_len;i++) {
\r
27 pt.ignoreCase = ra[i].ignoreCase;
\r
28 pt.mFlag = ra[i].mFlag;
\r
29 pt.dotDoesntMatchCR = Regex.dotDoesntMatchCR;
\r
30 int r = ra[i].thePattern.matchInternal(pos,pt);
\r