--- /dev/null
+//\r
+// This software is now distributed according to\r
+// the Lesser Gnu Public License. Please see\r
+// http://www.gnu.org/copyleft/lesser.txt for\r
+// the details.\r
+// -- Happy Computing!\r
+//\r
+package com.stevesoft.pat;\r
+import java.util.Hashtable;\r
+\r
+/** This class represents the \G pattern element. */\r
+class BackG extends Pattern {\r
+ char c,altc,altc2;\r
+ int mask;\r
+ public BackG() {\r
+ }\r
+ public int matchInternal(int pos,Pthings pt) {\r
+ return pos==pt.lastPos ? nextMatch(pos,pt) : -1;\r
+ }\r
+ public String toString() {\r
+ return "\\G"+nextString();\r
+ }\r
+ public patInt minChars() { return new patInt(1); }\r
+ public patInt maxChars() { return new patInt(1); }\r
+ Pattern clone1(Hashtable h) { return new BackG(); }\r
+}\r