2 // This software is now distributed according to
3 // the Lesser Gnu Public License. Please see
4 // http://www.gnu.org/copyleft/lesser.txt for
8 package com.stevesoft.pat;
11 * This class is used to implement the Transformer
13 * @see com.stevesoft.pat.Transform
15 class TransPat extends Pattern
17 Regex[] ra = new Regex[10];
23 public String toString()
25 return "(?#TransPat)";
32 int lastMatchedTo = -1;
34 public int matchInternal(int pos, Pthings pt)
36 for (int i = 0; i < ra_len; i++)
38 pt.ignoreCase = ra[i].ignoreCase;
39 pt.mFlag = ra[i].mFlag;
40 pt.dotDoesntMatchCR = Regex.dotDoesntMatchCR;
41 int r = ra[i].thePattern.matchInternal(pos, pt);