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;
10 /** OrMark and SubMark together implement ( ... ) */
11 class SubMark extends Pattern
13 int end_pos, start_pos;
17 public String toString()
22 public int matchInternal(int i, Pthings pt)
24 pt.marks[om.id + pt.nMarks] = i;
25 int ret = nextMatch(i, pt);
28 pt.marks[om.id + pt.nMarks] = -1;