merge from 2_4_Release branch
[jalview.git] / src / com / stevesoft / pat / CodeRule.java
index 31c779f..aa9c4dc 100755 (executable)
@@ -1,21 +1,33 @@
-//\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
-/** Implements the rules for \U, \L, \E, \Q in substitutions. */\r
-public final class CodeRule extends SpecialRule {\r
-    char c = 'E';\r
-    public CodeRule() {}\r
-    public CodeRule(char c) {\r
-        this.c = c;\r
-    }\r
-    public void apply(StringBufferLike sb,RegRes res) {\r
-      sb.setMode(c);\r
-    }\r
-    public String toString1() { return "\\"+c; }\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;
+
+/** Implements the rules for \U, \L, \E, \Q in substitutions. */
+public final class CodeRule extends SpecialRule
+{
+  char c = 'E';
+
+  public CodeRule()
+  {
+  }
+
+  public CodeRule(char c)
+  {
+    this.c = c;
+  }
+
+  public void apply(StringBufferLike sb, RegRes res)
+  {
+    sb.setMode(c);
+  }
+
+  public String toString1()
+  {
+    return "\\" + c;
+  }
+}