X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fcom%2Fstevesoft%2Fpat%2FPartialBuffer.js;h=02fc0e33c1b0c45756add4782a7406f296d8ac7a;hp=8490ff2c2320853502fc04a88d4511432c52888a;hb=7301a2415adab88038b291fc54caeeb3a5a47a44;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/com/stevesoft/pat/PartialBuffer.js b/bin/com/stevesoft/pat/PartialBuffer.js index 8490ff2..02fc0e3 100644 --- a/bin/com/stevesoft/pat/PartialBuffer.js +++ b/bin/com/stevesoft/pat/PartialBuffer.js @@ -1,50 +1,50 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.StringLike"], "com.stevesoft.pat.PartialBuffer", ["java.lang.StringBuffer"], function () { -c$ = Clazz.decorateAsClass (function () { -this.off = 0; -this.allowOverRun = true; -this.overRun = false; -this.sb = null; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "PartialBuffer", null, com.stevesoft.pat.StringLike); -Clazz.makeConstructor (c$, -function (sb) { -this.sb = sb; -}, "StringBuffer"); -Clazz.overrideMethod (c$, "charAt", -function (n) { -n += this.off; -if (n == this.sb.length ()) { -this.overRun = true; -return String.fromCharCode (0); -}return this.sb.charAt (n); -}, "~N"); -Clazz.overrideMethod (c$, "length", -function () { -return this.allowOverRun ? this.sb.length () + 1 : this.sb.length (); -}); -Clazz.overrideMethod (c$, "indexOf", -function (c) { -for (var i = 0; i < this.sb.length (); i++) { -if (this.sb.charAt (i) == c) { -return i; -}} -return -1; -}, "~S"); -Clazz.overrideMethod (c$, "unwrap", -function () { -return this.sb; -}); -Clazz.overrideMethod (c$, "substring", -function (i1, i2) { -var sb = new StringBuffer (i2 - i1); -for (var i = i1; i < i2; i++) { -sb.append (this.charAt (i)); -} -return sb.toString (); -}, "~N,~N"); -Clazz.overrideMethod (c$, "newStringBufferLike", -function () { -return null; -}); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.StringLike"], "com.stevesoft.pat.PartialBuffer", ["java.lang.StringBuffer"], function () { +c$ = Clazz.decorateAsClass (function () { +this.off = 0; +this.allowOverRun = true; +this.overRun = false; +this.sb = null; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "PartialBuffer", null, com.stevesoft.pat.StringLike); +Clazz.makeConstructor (c$, +function (sb) { +this.sb = sb; +}, "StringBuffer"); +Clazz.overrideMethod (c$, "charAt", +function (n) { +n += this.off; +if (n == this.sb.length ()) { +this.overRun = true; +return String.fromCharCode (0); +}return this.sb.charAt (n); +}, "~N"); +Clazz.overrideMethod (c$, "length", +function () { +return this.allowOverRun ? this.sb.length () + 1 : this.sb.length (); +}); +Clazz.overrideMethod (c$, "indexOf", +function (c) { +for (var i = 0; i < this.sb.length (); i++) { +if (this.sb.charAt (i) == c) { +return i; +}} +return -1; +}, "~S"); +Clazz.overrideMethod (c$, "unwrap", +function () { +return this.sb; +}); +Clazz.overrideMethod (c$, "substring", +function (i1, i2) { +var sb = new StringBuffer (i2 - i1); +for (var i = i1; i < i2; i++) { +sb.append (this.charAt (i)); +} +return sb.toString (); +}, "~N,~N"); +Clazz.overrideMethod (c$, "newStringBufferLike", +function () { +return null; +}); +});