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
12 /** This class represents the \G pattern element. */
\r
13 class BackG extends Pattern
\r
15 char c, altc, altc2;
\r
23 public int matchInternal(int pos, Pthings pt)
\r
25 return pos == pt.lastPos ? nextMatch(pos, pt) : -1;
\r
28 public String toString()
\r
30 return "\\G" + nextString();
\r
33 public patInt minChars()
\r
35 return new patInt(1);
\r
38 public patInt maxChars()
\r
40 return new patInt(1);
\r
43 Pattern clone1(Hashtable h)
\r