X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FCodeRule.java;h=aa9c4dc429dde2494023d8d244733497bf28d1b9;hb=17e4ea278bc9a5fb280db1252ce78b7a295215f5;hp=31c779ff71b47e43dee11f77d6e51b39c1f97660;hpb=c40cf903f740a72ab63dd1abc10fa33450ce660d;p=jalview.git diff --git a/src/com/stevesoft/pat/CodeRule.java b/src/com/stevesoft/pat/CodeRule.java index 31c779f..aa9c4dc 100755 --- a/src/com/stevesoft/pat/CodeRule.java +++ b/src/com/stevesoft/pat/CodeRule.java @@ -1,21 +1,33 @@ -// -// 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; } -} +// +// 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; + } +}