X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2Fwrap%2FStringWrap.js;h=a468b0d63d0a8128c1ebf663dd5c1cca98edda26;hp=d8e9dfeefc06ea457e173ed756146d8612ece600;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/com/stevesoft/pat/wrap/StringWrap.js b/site/j2s/com/stevesoft/pat/wrap/StringWrap.js index d8e9dfe..a468b0d 100644 --- a/site/j2s/com/stevesoft/pat/wrap/StringWrap.js +++ b/site/j2s/com/stevesoft/pat/wrap/StringWrap.js @@ -1,39 +1,39 @@ -Clazz.declarePackage ("com.stevesoft.pat.wrap"); -Clazz.load (["com.stevesoft.pat.StringLike"], "com.stevesoft.pat.wrap.StringWrap", ["com.stevesoft.pat.wrap.StringBufferWrap"], function () { -c$ = Clazz.decorateAsClass (function () { -this.s = null; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat.wrap, "StringWrap", null, com.stevesoft.pat.StringLike); -Clazz.makeConstructor (c$, -function (s) { -this.s = s; -}, "~S"); -Clazz.overrideMethod (c$, "toString", -function () { -return this.s; -}); -Clazz.overrideMethod (c$, "charAt", -function (i) { -return this.s.charAt (i); -}, "~N"); -Clazz.overrideMethod (c$, "length", -function () { -return this.s.length; -}); -Clazz.overrideMethod (c$, "substring", -function (i1, i2) { -return this.s.substring (i1, i2); -}, "~N,~N"); -Clazz.overrideMethod (c$, "unwrap", -function () { -return this.s; -}); -Clazz.overrideMethod (c$, "newStringBufferLike", -function () { -return new com.stevesoft.pat.wrap.StringBufferWrap (); -}); -Clazz.overrideMethod (c$, "indexOf", -function (c) { -return this.s.indexOf (c); -}, "~S"); -}); +Clazz.declarePackage ("com.stevesoft.pat.wrap"); +Clazz.load (["com.stevesoft.pat.StringLike"], "com.stevesoft.pat.wrap.StringWrap", ["com.stevesoft.pat.wrap.StringBufferWrap"], function () { +c$ = Clazz.decorateAsClass (function () { +this.s = null; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat.wrap, "StringWrap", null, com.stevesoft.pat.StringLike); +Clazz.makeConstructor (c$, +function (s) { +this.s = s; +}, "~S"); +Clazz.overrideMethod (c$, "toString", +function () { +return this.s; +}); +Clazz.overrideMethod (c$, "charAt", +function (i) { +return this.s.charAt (i); +}, "~N"); +Clazz.overrideMethod (c$, "length", +function () { +return this.s.length; +}); +Clazz.overrideMethod (c$, "substring", +function (i1, i2) { +return this.s.substring (i1, i2); +}, "~N,~N"); +Clazz.overrideMethod (c$, "unwrap", +function () { +return this.s; +}); +Clazz.overrideMethod (c$, "newStringBufferLike", +function () { +return new com.stevesoft.pat.wrap.StringBufferWrap (); +}); +Clazz.overrideMethod (c$, "indexOf", +function (c) { +return this.s.indexOf (c); +}, "~S"); +});