-//\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
-/** This implements the $& element of the second argument to\r
- * Regex.\r
- * @see com.stevesoft.pat.ReplaceRule\r
- */\r
-public final class AmpersandRule\r
- extends ReplaceRule\r
-{\r
- public AmpersandRule()\r
- {}\r
-\r
- public void apply(StringBufferLike sb, RegRes res)\r
- {\r
- sb.append(res.stringMatched());\r
- }\r
-\r
- public String toString1()\r
- {\r
- return "$&";\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;
+
+/**
+ * This implements the $& element of the second argument to Regex.
+ *
+ * @see com.stevesoft.pat.ReplaceRule
+ */
+public final class AmpersandRule extends ReplaceRule
+{
+ public AmpersandRule()
+ {
+ }
+
+ public void apply(StringBufferLike sb, RegRes res)
+ {
+ sb.append(res.stringMatched());
+ }
+
+ public String toString1()
+ {
+ return "$&";
+ }
+}