JAL-1807 still testing
[jalviewjs.git] / bin / com / stevesoft / pat / oneChar.js
index 1fbc400..3dac704 100644 (file)
@@ -1,55 +1,55 @@
-Clazz.declarePackage ("com.stevesoft.pat");
-Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.oneChar", ["com.stevesoft.pat.CaseMgr", "$.patInt"], function () {
-c$ = Clazz.decorateAsClass (function () {
-this.c = '\0';
-this.altc = '\0';
-this.altc2 = '\0';
-this.mask = 0;
-Clazz.instantialize (this, arguments);
-}, com.stevesoft.pat, "oneChar", com.stevesoft.pat.Pattern);
-Clazz.makeConstructor (c$, 
-function (ci) {
-Clazz.superConstructor (this, com.stevesoft.pat.oneChar, []);
-this.c = ci;
-var cu;
-var cl;
-var ct;
-cu = com.stevesoft.pat.CaseMgr.toUpperCaseC (this.c);
-cl = com.stevesoft.pat.CaseMgr.toLowerCaseC (this.c);
-ct = com.stevesoft.pat.CaseMgr.toTitleCaseC (this.c);
-if (this.c == cu) {
-this.altc = cl;
-this.altc2 = ct;
-} else if (this.c == cl) {
-this.altc = cu;
-this.altc2 = ct;
-} else {
-this.altc = cl;
-this.altc2 = cu;
-}this.mask = this.c.charCodeAt (0) & this.altc.charCodeAt (0) & this.altc2.charCodeAt (0);
-}, "~S");
-Clazz.overrideMethod (c$, "matchInternal", 
-function (pos, pt) {
-var p;
-var ret = -1;
-if (pos < pt.src.length () && !this.Masked (pos, pt) && ((p = pt.src.charAt (pos)) == this.c || (pt.ignoreCase && (p == this.altc || p == this.altc2)))) {
-ret = this.nextMatch (pos + 1, pt);
-}return ret;
-}, "~N,com.stevesoft.pat.Pthings");
-Clazz.overrideMethod (c$, "toString", 
-function () {
-return com.stevesoft.pat.Pattern.protect ("" + this.c, "[]{}(),$,-\"^.", '\\') + this.nextString ();
-});
-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) {
-return  new com.stevesoft.pat.oneChar (this.c);
-}, "java.util.Hashtable");
-});
+Clazz.declarePackage ("com.stevesoft.pat");\r
+Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.oneChar", ["com.stevesoft.pat.CaseMgr", "$.patInt"], function () {\r
+c$ = Clazz.decorateAsClass (function () {\r
+this.c = '\0';\r
+this.altc = '\0';\r
+this.altc2 = '\0';\r
+this.mask = 0;\r
+Clazz.instantialize (this, arguments);\r
+}, com.stevesoft.pat, "oneChar", com.stevesoft.pat.Pattern);\r
+Clazz.makeConstructor (c$, \r
+function (ci) {\r
+Clazz.superConstructor (this, com.stevesoft.pat.oneChar, []);\r
+this.c = ci;\r
+var cu;\r
+var cl;\r
+var ct;\r
+cu = com.stevesoft.pat.CaseMgr.toUpperCaseC (this.c);\r
+cl = com.stevesoft.pat.CaseMgr.toLowerCaseC (this.c);\r
+ct = com.stevesoft.pat.CaseMgr.toTitleCaseC (this.c);\r
+if (this.c == cu) {\r
+this.altc = cl;\r
+this.altc2 = ct;\r
+} else if (this.c == cl) {\r
+this.altc = cu;\r
+this.altc2 = ct;\r
+} else {\r
+this.altc = cl;\r
+this.altc2 = cu;\r
+}this.mask = this.c.charCodeAt (0) & this.altc.charCodeAt (0) & this.altc2.charCodeAt (0);\r
+}, "~S");\r
+Clazz.overrideMethod (c$, "matchInternal", \r
+function (pos, pt) {\r
+var p;\r
+var ret = -1;\r
+if (pos < pt.src.length () && !this.Masked (pos, pt) && ((p = pt.src.charAt (pos)) == this.c || (pt.ignoreCase && (p == this.altc || p == this.altc2)))) {\r
+ret = this.nextMatch (pos + 1, pt);\r
+}return ret;\r
+}, "~N,com.stevesoft.pat.Pthings");\r
+Clazz.overrideMethod (c$, "toString", \r
+function () {\r
+return com.stevesoft.pat.Pattern.protect ("" + this.c, "[]{}(),$,-\"^.", '\\') + this.nextString ();\r
+});\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
+return  new com.stevesoft.pat.oneChar (this.c);\r
+}, "java.util.Hashtable");\r
+});\r