-//\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 is the '.' character in a Pattern. It\r
- matches any character. */\r
-class Any extends Pattern {\r
- public int matchInternal(int pos,Pthings pt) {\r
- if(pos < pt.src.length())\r
- if(pt.dotDoesntMatchCR) {\r
- if(pt.src.charAt(pos) != '\n')\r
- return nextMatch(pos+1,pt);\r
- } else return nextMatch(pos+1,pt);\r
- return -1;\r
- }\r
- public String toString() {\r
- return "."+nextString();\r
- }\r
- public patInt minChars() { return new patInt(1); }\r
- public patInt maxChars() { return new patInt(1); }\r
- public Pattern clone1(Hashtable h) { return new Any(); }\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 is the '.' character in a Pattern. It matches any character.
+ */
+class Any extends Pattern
+{
+ public int matchInternal(int pos, Pthings pt)
+ {
+ if (pos < pt.src.length())
+ {
+ if (pt.dotDoesntMatchCR)
+ {
+ if (pt.src.charAt(pos) != '\n')
+ {
+ return nextMatch(pos + 1, pt);
+ }
+ }
+ else
+ {
+ return nextMatch(pos + 1, pt);
+ }
+ }
+ return -1;
+ }
+
+ public String toString()
+ {
+ return "." + nextString();
+ }
+
+ public patInt minChars()
+ {
+ return new patInt(1);
+ }
+
+ public patInt maxChars()
+ {
+ return new patInt(1);
+ }
+
+ public Pattern clone1(Hashtable h)
+ {
+ return new Any();
+ }
+};