X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FCodeRule.java;h=aa9c4dc429dde2494023d8d244733497bf28d1b9;hb=f4e415106d75a69a373c0c9a37b6bdc2d5a55231;hp=763bf3e10fe182c9bf00f35978545ea70c850df9;hpb=7bc226b58110fa26d9dbd3f0c78095d06909ffc3;p=jalview.git diff --git a/src/com/stevesoft/pat/CodeRule.java b/src/com/stevesoft/pat/CodeRule.java index 763bf3e..aa9c4dc 100755 --- a/src/com/stevesoft/pat/CodeRule.java +++ b/src/com/stevesoft/pat/CodeRule.java @@ -1,32 +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; + } +}