X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fcom%2Fstevesoft%2Fpat%2FTransPat.js;h=65f32a15c328c8901b394c4f56a7450921892f93;hp=ec296f104753839d7d4add1f4047504d37326f46;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/com/stevesoft/pat/TransPat.js b/site/j2s/com/stevesoft/pat/TransPat.js index ec296f1..65f32a1 100644 --- a/site/j2s/com/stevesoft/pat/TransPat.js +++ b/site/j2s/com/stevesoft/pat/TransPat.js @@ -1,35 +1,35 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.TransPat", ["com.stevesoft.pat.Regex"], function () { -c$ = Clazz.decorateAsClass (function () { -this.ra = null; -this.ra_len = 0; -this.pn = -1; -this.lastMatchedTo = -1; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "TransPat", com.stevesoft.pat.Pattern); -Clazz.prepareFields (c$, function () { -this.ra = new Array (10); -}); -Clazz.overrideMethod (c$, "toString", -function () { -return "(?#TransPat)"; -}); -Clazz.makeConstructor (c$, -function () { -Clazz.superConstructor (this, com.stevesoft.pat.TransPat, []); -}); -Clazz.defineMethod (c$, "matchInternal", -function (pos, pt) { -for (var i = 0; i < this.ra_len; i++) { -pt.ignoreCase = this.ra[i].ignoreCase; -pt.mFlag = this.ra[i].mFlag; -pt.dotDoesntMatchCR = com.stevesoft.pat.Regex.dotDoesntMatchCR; -var r = this.ra[i].thePattern.matchInternal (pos, pt); -if (r >= 0) { -this.pn = i; -return r; -}} -this.pn = -1; -return -1; -}, "~N,com.stevesoft.pat.Pthings"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.TransPat", ["com.stevesoft.pat.Regex"], function () { +c$ = Clazz.decorateAsClass (function () { +this.ra = null; +this.ra_len = 0; +this.pn = -1; +this.lastMatchedTo = -1; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "TransPat", com.stevesoft.pat.Pattern); +Clazz.prepareFields (c$, function () { +this.ra = new Array (10); +}); +Clazz.overrideMethod (c$, "toString", +function () { +return "(?#TransPat)"; +}); +Clazz.makeConstructor (c$, +function () { +Clazz.superConstructor (this, com.stevesoft.pat.TransPat, []); +}); +Clazz.defineMethod (c$, "matchInternal", +function (pos, pt) { +for (var i = 0; i < this.ra_len; i++) { +pt.ignoreCase = this.ra[i].ignoreCase; +pt.mFlag = this.ra[i].mFlag; +pt.dotDoesntMatchCR = com.stevesoft.pat.Regex.dotDoesntMatchCR; +var r = this.ra[i].thePattern.matchInternal (pos, pt); +if (r >= 0) { +this.pn = i; +return r; +}} +this.pn = -1; +return -1; +}, "~N,com.stevesoft.pat.Pthings"); +});