X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fcom%2Fstevesoft%2Fpat%2FStringBufferLike.js;h=fd5b6c30b62074c3d9eb68b849bc930e92b8a3a7;hp=245532962a840950f268d83b1f97354ae63cfc1c;hb=7301a2415adab88038b291fc54caeeb3a5a47a44;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/com/stevesoft/pat/StringBufferLike.js b/bin/com/stevesoft/pat/StringBufferLike.js index 2455329..fd5b6c3 100644 --- a/bin/com/stevesoft/pat/StringBufferLike.js +++ b/bin/com/stevesoft/pat/StringBufferLike.js @@ -1,62 +1,62 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.BasicStringBufferLike"], "com.stevesoft.pat.StringBufferLike", ["com.stevesoft.pat.CaseMgr"], function () { -c$ = Clazz.decorateAsClass (function () { -this.sbl = null; -this.mode = 'E'; -this.altMode = ' '; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "StringBufferLike", null, com.stevesoft.pat.BasicStringBufferLike); -Clazz.makeConstructor (c$, -function (sbl) { -this.sbl = sbl; -}, "com.stevesoft.pat.BasicStringBufferLike"); -Clazz.defineMethod (c$, "toStringLike", -function () { -return this.sbl.toStringLike (); -}); -Clazz.defineMethod (c$, "toString", -function () { -return this.sbl.toString (); -}); -Clazz.defineMethod (c$, "appendC", -function (c) { -switch (this.mode) { -case 'u': -this.mode = this.altMode; -this.altMode = ' '; -case 'U': -this.sbl.appendC (com.stevesoft.pat.CaseMgr.toUpperCaseC (c)); -break; -case 'l': -this.mode = this.altMode; -this.altMode = ' '; -case 'L': -this.sbl.appendC (com.stevesoft.pat.CaseMgr.toLowerCaseC (c)); -break; -case 'Q': -if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')) { -;} else { -this.sbl.appendC ('\\'); -}default: -this.sbl.appendC (c); -break; -} -}, "~S"); -Clazz.overrideMethod (c$, "append", -function (s) { -for (var i = 0; i < s.length; i++) { -this.appendC (s.charAt (i)); -} -}, "~S"); -Clazz.defineMethod (c$, "setMode", -function (c) { -if (c == 'u' || c == 'l') { -if (this.altMode == ' ') { -this.altMode = this.mode; -}}this.mode = c; -}, "~S"); -Clazz.defineMethod (c$, "unwrap", -function () { -return this.sbl.unwrap (); -}); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.BasicStringBufferLike"], "com.stevesoft.pat.StringBufferLike", ["com.stevesoft.pat.CaseMgr"], function () { +c$ = Clazz.decorateAsClass (function () { +this.sbl = null; +this.mode = 'E'; +this.altMode = ' '; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "StringBufferLike", null, com.stevesoft.pat.BasicStringBufferLike); +Clazz.makeConstructor (c$, +function (sbl) { +this.sbl = sbl; +}, "com.stevesoft.pat.BasicStringBufferLike"); +Clazz.defineMethod (c$, "toStringLike", +function () { +return this.sbl.toStringLike (); +}); +Clazz.defineMethod (c$, "toString", +function () { +return this.sbl.toString (); +}); +Clazz.defineMethod (c$, "appendC", +function (c) { +switch (this.mode) { +case 'u': +this.mode = this.altMode; +this.altMode = ' '; +case 'U': +this.sbl.appendC (com.stevesoft.pat.CaseMgr.toUpperCaseC (c)); +break; +case 'l': +this.mode = this.altMode; +this.altMode = ' '; +case 'L': +this.sbl.appendC (com.stevesoft.pat.CaseMgr.toLowerCaseC (c)); +break; +case 'Q': +if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')) { +;} else { +this.sbl.appendC ('\\'); +}default: +this.sbl.appendC (c); +break; +} +}, "~S"); +Clazz.overrideMethod (c$, "append", +function (s) { +for (var i = 0; i < s.length; i++) { +this.appendC (s.charAt (i)); +} +}, "~S"); +Clazz.defineMethod (c$, "setMode", +function (c) { +if (c == 'u' || c == 'l') { +if (this.altMode == ' ') { +this.altMode = this.mode; +}}this.mode = c; +}, "~S"); +Clazz.defineMethod (c$, "unwrap", +function () { +return this.sbl.unwrap (); +}); +});