Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / com / stevesoft / pat / Range.js
index cb007c4..8294a31 100644 (file)
@@ -1,65 +1,65 @@
-Clazz.declarePackage ("com.stevesoft.pat");\r
-Clazz.load (["com.stevesoft.pat.Pattern", "$.RegSyntax"], ["com.stevesoft.pat.BadRangeArgs", "$.Range"], ["com.stevesoft.pat.RegSyntaxError", "$.oneChar", "$.patInt"], function () {\r
-c$ = Clazz.declareType (com.stevesoft.pat, "BadRangeArgs", com.stevesoft.pat.RegSyntax);\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.lo = '\0';\r
-this.hi = '\0';\r
-this.altlo = '\0';\r
-this.althi = '\0';\r
-this.printBrackets = false;\r
-Clazz.instantialize (this, arguments);\r
-}, com.stevesoft.pat, "Range", com.stevesoft.pat.Pattern);\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-var s = com.stevesoft.pat.Pattern.protect ("" + this.lo, "[]{}(),$,-\"^.", '\\') + "-" + com.stevesoft.pat.Pattern.protect ("" + this.hi, "[]{}(),$,-\"^.", '\\');\r
-if (!this.printBrackets) {\r
-return s;\r
-}return "[" + s + "]";\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (loi, hii) {\r
-Clazz.superConstructor (this, com.stevesoft.pat.Range, []);\r
-this.lo = loi;\r
-this.hi = hii;\r
-var o = null;\r
-if (this.lo >= this.hi) {\r
-com.stevesoft.pat.RegSyntaxError.endItAll ("Badly formed []'s : " + this.lo + " >= " + this.hi);\r
-}o =  new com.stevesoft.pat.oneChar (this.lo);\r
-this.altlo = o.altc;\r
-o =  new com.stevesoft.pat.oneChar (this.hi);\r
-this.althi = o.altc;\r
-}, "~S,~S");\r
-Clazz.overrideMethod (c$, "matchInternal", \r
-function (pos, pt) {\r
-if (pos >= pt.src.length ()) {\r
-return -1;\r
-}if (this.Masked (pos, pt)) {\r
-return -1;\r
-}var c = pt.src.charAt (pos);\r
-if (this.lo <= c && c <= this.hi || (pt.ignoreCase && (this.altlo <= c && c <= this.althi))) {\r
-return this.nextMatch (pos + 1, pt);\r
-}return -1;\r
-}, "~N,com.stevesoft.pat.Pthings");\r
-Clazz.overrideMethod (c$, "minChars", \r
-function () {\r
-return  new com.stevesoft.pat.patInt (1);\r
-});\r
-Clazz.overrideMethod (c$, "maxChars", \r
-function () {\r
-return  new com.stevesoft.pat.patInt (1);\r
-});\r
-Clazz.overrideMethod (c$, "clone1", \r
-function (h) {\r
-try {\r
-var r =  new com.stevesoft.pat.Range (this.lo, this.hi);\r
-r.printBrackets = this.printBrackets;\r
-return r;\r
-} catch (rs) {\r
-if (Clazz.exceptionOf (rs, com.stevesoft.pat.RegSyntax)) {\r
-return null;\r
-} else {\r
-throw rs;\r
-}\r
-}\r
-}, "java.util.Hashtable");\r
-});\r
+Clazz.declarePackage ("com.stevesoft.pat");
+Clazz.load (["com.stevesoft.pat.Pattern", "$.RegSyntax"], ["com.stevesoft.pat.BadRangeArgs", "$.Range"], ["com.stevesoft.pat.RegSyntaxError", "$.oneChar", "$.patInt"], function () {
+c$ = Clazz.declareType (com.stevesoft.pat, "BadRangeArgs", com.stevesoft.pat.RegSyntax);
+c$ = Clazz.decorateAsClass (function () {
+this.lo = '\0';
+this.hi = '\0';
+this.altlo = '\0';
+this.althi = '\0';
+this.printBrackets = false;
+Clazz.instantialize (this, arguments);
+}, com.stevesoft.pat, "Range", com.stevesoft.pat.Pattern);
+Clazz.overrideMethod (c$, "toString", 
+function () {
+var s = com.stevesoft.pat.Pattern.protect ("" + this.lo, "[]{}(),$,-\"^.", '\\') + "-" + com.stevesoft.pat.Pattern.protect ("" + this.hi, "[]{}(),$,-\"^.", '\\');
+if (!this.printBrackets) {
+return s;
+}return "[" + s + "]";
+});
+Clazz.makeConstructor (c$, 
+function (loi, hii) {
+Clazz.superConstructor (this, com.stevesoft.pat.Range, []);
+this.lo = loi;
+this.hi = hii;
+var o = null;
+if (this.lo >= this.hi) {
+com.stevesoft.pat.RegSyntaxError.endItAll ("Badly formed []'s : " + this.lo + " >= " + this.hi);
+}o =  new com.stevesoft.pat.oneChar (this.lo);
+this.altlo = o.altc;
+o =  new com.stevesoft.pat.oneChar (this.hi);
+this.althi = o.altc;
+}, "~S,~S");
+Clazz.overrideMethod (c$, "matchInternal", 
+function (pos, pt) {
+if (pos >= pt.src.length ()) {
+return -1;
+}if (this.Masked (pos, pt)) {
+return -1;
+}var c = pt.src.charAt (pos);
+if (this.lo <= c && c <= this.hi || (pt.ignoreCase && (this.altlo <= c && c <= this.althi))) {
+return this.nextMatch (pos + 1, pt);
+}return -1;
+}, "~N,com.stevesoft.pat.Pthings");
+Clazz.overrideMethod (c$, "minChars", 
+function () {
+return  new com.stevesoft.pat.patInt (1);
+});
+Clazz.overrideMethod (c$, "maxChars", 
+function () {
+return  new com.stevesoft.pat.patInt (1);
+});
+Clazz.overrideMethod (c$, "clone1", 
+function (h) {
+try {
+var r =  new com.stevesoft.pat.Range (this.lo, this.hi);
+r.printBrackets = this.printBrackets;
+return r;
+} catch (rs) {
+if (Clazz.exceptionOf (rs, com.stevesoft.pat.RegSyntax)) {
+return null;
+} else {
+throw rs;
+}
+}
+}, "java.util.Hashtable");
+});