-//\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
-\r
-import java.util.*;\r
-\r
-/** This pattern matches nothing -- it is found in patterns\r
- * like (hello|world|) where a zero-length subelement occurs.\r
- */\r
-class NullPattern\r
- extends Pattern\r
-{\r
- public String toString()\r
- {\r
- return nextString();\r
- }\r
-\r
- public int matchInternal(int p, Pthings pt)\r
- {\r
- return nextMatch(p, pt);\r
- }\r
-\r
- public patInt maxChars()\r
- {\r
- return new patInt(0);\r
- }\r
-\r
- Pattern clone1(Hashtable h)\r
- {\r
- return new NullPattern();\r
- }\r
-}\r
+//
+// This software is now distributed according to
+// the Lesser Gnu Public License. Please see
+// http://www.gnu.org/copyleft/lesser.txt for
+// the details.
+// -- Happy Computing!
+//
+package com.stevesoft.pat;
+
+import java.util.Hashtable;
+
+/**
+ * This pattern matches nothing -- it is found in patterns like (hello|world|)
+ * where a zero-length subelement occurs.
+ */
+class NullPattern extends Pattern
+{
+ public String toString()
+ {
+ return nextString();
+ }
+
+ public int matchInternal(int p, Pthings pt)
+ {
+ return nextMatch(p, pt);
+ }
+
+ public patInt maxChars()
+ {
+ return new patInt(0);
+ }
+
+ Pattern clone1(Hashtable h)
+ {
+ return new NullPattern();
+ }
+}