-package //
-// 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!
-//
-com.stevesoft.pat;
-
-/**
- * Package pat can search anything that implements this interface. Package pat
- * assumes the following:
- * <ul>
- * <li>The StringLike object will not change. Calls to charAt(int) will not
- * vary with time.
- * <li>The length of the object being searched is known before the search
- * begins and does not vary with time.
- * </ul>
- * Note that searching String is probably faster than searching other objects,
- * so searching String is still preferred if possible.
- */
-public interface StringLike
-{
- public char charAt(int i);
-
- public String toString();
-
- public int length();
-
- public String substring(int i1, int i2);
-
- /**
- * Obtain the underlying object, be it a String, char[], RandomAccessFile,
- * whatever.
- */
- public Object unwrap();
-
- /**
- * By default, the result is put in a String or char[] when a replace is done.
- * If you wish to save the result in some other StringBufferLike then you can
- * do this by implementing this method, or over-riding it's behavior from an
- * existing class.
- */
- public BasicStringBufferLike newStringBufferLike();
-
- public int indexOf(char c);
-}
+package //\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
+com.stevesoft.pat;\r
+\r
+/**\r
+ * Package pat can search anything that implements this interface. Package pat\r
+ * assumes the following:\r
+ * <ul>\r
+ * <li>The StringLike object will not change. Calls to charAt(int) will not\r
+ * vary with time.\r
+ * <li>The length of the object being searched is known before the search\r
+ * begins and does not vary with time.\r
+ * </ul>\r
+ * Note that searching String is probably faster than searching other objects,\r
+ * so searching String is still preferred if possible.\r
+ */\r
+public interface StringLike\r
+{\r
+ public char charAt(int i);\r
+\r
+ public String toString();\r
+\r
+ public int length();\r
+\r
+ public String substring(int i1, int i2);\r
+\r
+ /**\r
+ * Obtain the underlying object, be it a String, char[], RandomAccessFile,\r
+ * whatever.\r
+ */\r
+ public Object unwrap();\r
+\r
+ /**\r
+ * By default, the result is put in a String or char[] when a replace is done.\r
+ * If you wish to save the result in some other StringBufferLike then you can\r
+ * do this by implementing this method, or over-riding it's behavior from an\r
+ * existing class.\r
+ */\r
+ public BasicStringBufferLike newStringBufferLike();\r
+\r
+ public int indexOf(char c);\r
+}\r