Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / com / stevesoft / pat / BackMatch.js
index 018cdda..f3a2ea9 100644 (file)
@@ -1,36 +1,36 @@
-Clazz.declarePackage ("com.stevesoft.pat");\r
-Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.BackMatch", null, function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.id = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, com.stevesoft.pat, "BackMatch", com.stevesoft.pat.Pattern);\r
-Clazz.makeConstructor (c$, \r
-function (id) {\r
-Clazz.superConstructor (this, com.stevesoft.pat.BackMatch, []);\r
-this.id = id;\r
-}, "~N");\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return "\\" + (this.id) + this.nextString ();\r
-});\r
-Clazz.overrideMethod (c$, "matchInternal", \r
-function (pos, p) {\r
-var i1 = p.marks[this.id];\r
-var i2 = p.marks[this.id + p.nMarks];\r
-var imax = i2 - i1;\r
-if (i1 < 0 || imax < 0 || pos + imax > p.src.length ()) {\r
-return -1;\r
-}var ns = p.src.length () - pos;\r
-if (imax < ns) {\r
-ns = imax;\r
-}for (var i = 0; i < ns; i++) {\r
-if (p.src.charAt (i + i1) != p.src.charAt (pos + i)) {\r
-return -1;\r
-}}\r
-return this.nextMatch (pos + imax, p);\r
-}, "~N,com.stevesoft.pat.Pthings");\r
-Clazz.overrideMethod (c$, "clone1", \r
-function (h) {\r
-return  new com.stevesoft.pat.BackMatch (this.id);\r
-}, "java.util.Hashtable");\r
-});\r
+Clazz.declarePackage ("com.stevesoft.pat");
+Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.BackMatch", null, function () {
+c$ = Clazz.decorateAsClass (function () {
+this.id = 0;
+Clazz.instantialize (this, arguments);
+}, com.stevesoft.pat, "BackMatch", com.stevesoft.pat.Pattern);
+Clazz.makeConstructor (c$, 
+function (id) {
+Clazz.superConstructor (this, com.stevesoft.pat.BackMatch, []);
+this.id = id;
+}, "~N");
+Clazz.overrideMethod (c$, "toString", 
+function () {
+return "\\" + (this.id) + this.nextString ();
+});
+Clazz.overrideMethod (c$, "matchInternal", 
+function (pos, p) {
+var i1 = p.marks[this.id];
+var i2 = p.marks[this.id + p.nMarks];
+var imax = i2 - i1;
+if (i1 < 0 || imax < 0 || pos + imax > p.src.length ()) {
+return -1;
+}var ns = p.src.length () - pos;
+if (imax < ns) {
+ns = imax;
+}for (var i = 0; i < ns; i++) {
+if (p.src.charAt (i + i1) != p.src.charAt (pos + i)) {
+return -1;
+}}
+return this.nextMatch (pos + imax, p);
+}, "~N,com.stevesoft.pat.Pthings");
+Clazz.overrideMethod (c$, "clone1", 
+function (h) {
+return  new com.stevesoft.pat.BackMatch (this.id);
+}, "java.util.Hashtable");
+});