X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FSkip2.js;h=e69b45e76d4093134bc5496346a6eff50428dc59;hp=c06b56e0ecff1b0229ce728fec732705c6a0a744;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/com/stevesoft/pat/Skip2.js b/site/j2s/com/stevesoft/pat/Skip2.js index c06b56e..e69b45e 100644 --- a/site/j2s/com/stevesoft/pat/Skip2.js +++ b/site/j2s/com/stevesoft/pat/Skip2.js @@ -1,31 +1,31 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.Skip"], "com.stevesoft.pat.Skip2", ["com.stevesoft.pat.CaseMgr"], function () { -c$ = Clazz.decorateAsClass (function () { -this.c1 = 0; -this.mask1 = 0; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "Skip2", com.stevesoft.pat.Skip); -Clazz.makeConstructor (c$, -function (s, ign, offset) { -Clazz.superConstructor (this, com.stevesoft.pat.Skip2, [s, ign, offset]); -this.c1 = s.charCodeAt (1); -this.m1 = 2 == s.length; -if (ign) { -this.mask1 = com.stevesoft.pat.Skip.mkmask (this.c1); -} else { -this.mask1 = 0; -}}, "~S,~B,~N"); -Clazz.defineMethod (c$, "find", -function (s, start, end) { -if (start > end) { -return -1; -}start += this.$offset; -var vend = com.stevesoft.pat.Skip.min (s.length () - 2, end + this.$offset); -for (var i = start; i <= vend; i++) { -if (0 == (s.charCodeAt (i) & this.mask) && 0 == (s.charCodeAt (i + 1) & this.mask1)) { -if (this.m1 || com.stevesoft.pat.CaseMgr.regionMatchesLike2 (s, this.ign, i, this.src, 0, this.src.length)) { -return i - this.$offset; -}}} -return -1; -}, "com.stevesoft.pat.StringLike,~N,~N"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.Skip"], "com.stevesoft.pat.Skip2", ["com.stevesoft.pat.CaseMgr"], function () { +c$ = Clazz.decorateAsClass (function () { +this.c1 = 0; +this.mask1 = 0; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "Skip2", com.stevesoft.pat.Skip); +Clazz.makeConstructor (c$, +function (s, ign, offset) { +Clazz.superConstructor (this, com.stevesoft.pat.Skip2, [s, ign, offset]); +this.c1 = s.charCodeAt (1); +this.m1 = 2 == s.length; +if (ign) { +this.mask1 = com.stevesoft.pat.Skip.mkmask (this.c1); +} else { +this.mask1 = 0; +}}, "~S,~B,~N"); +Clazz.defineMethod (c$, "find", +function (s, start, end) { +if (start > end) { +return -1; +}start += this.$offset; +var vend = com.stevesoft.pat.Skip.min (s.length () - 2, end + this.$offset); +for (var i = start; i <= vend; i++) { +if (0 == (s.charCodeAt (i) & this.mask) && 0 == (s.charCodeAt (i + 1) & this.mask1)) { +if (this.m1 || com.stevesoft.pat.CaseMgr.regionMatchesLike2 (s, this.ign, i, this.src, 0, this.src.length)) { +return i - this.$offset; +}}} +return -1; +}, "com.stevesoft.pat.StringLike,~N,~N"); +});