JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / com / stevesoft / pat / StrPos.js
index fb1baf4..366f46b 100644 (file)
-Clazz.declarePackage ("com.stevesoft.pat");\r
-Clazz.load (null, "com.stevesoft.pat.StrPos", ["com.stevesoft.pat.patInf", "$.patInt"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.s = null;\r
-this.$pos = 0;\r
-this.esc = '\\';\r
-this.c = '\0';\r
-this.dontMatch = false;\r
-this.$eos = false;\r
-Clazz.instantialize (this, arguments);\r
-}, com.stevesoft.pat, "StrPos");\r
-Clazz.defineMethod (c$, "pos", \r
-function () {\r
-return this.$pos;\r
-});\r
-Clazz.defineMethod (c$, "thisChar", \r
-function () {\r
-return this.c;\r
-});\r
-Clazz.defineMethod (c$, "eos", \r
-function () {\r
-return this.$eos;\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (sp) {\r
-this.dup (sp);\r
-}, "com.stevesoft.pat.StrPos");\r
-Clazz.defineMethod (c$, "dup", \r
-function (sp) {\r
-this.s = sp.s;\r
-this.$pos = sp.$pos;\r
-this.c = sp.c;\r
-this.dontMatch = sp.dontMatch;\r
-this.$eos = sp.$eos;\r
-}, "com.stevesoft.pat.StrPos");\r
-Clazz.makeConstructor (c$, \r
-function (s, pos) {\r
-this.s = s;\r
-this.$pos = pos - 1;\r
-this.inc ();\r
-}, "~S,~N");\r
-Clazz.defineMethod (c$, "inc", \r
-function () {\r
-this.$pos++;\r
-if (this.$pos >= this.s.length) {\r
-this.$eos = true;\r
-return this;\r
-}this.$eos = false;\r
-this.c = this.s.charAt (this.$pos);\r
-if (this.c == this.esc && this.$pos + 1 < this.s.length) {\r
-this.$pos++;\r
-this.c = this.s.charAt (this.$pos);\r
-if (this.c != this.esc) {\r
-this.dontMatch = true;\r
-} else {\r
-this.dontMatch = false;\r
-}} else {\r
-this.dontMatch = false;\r
-}return this;\r
-});\r
-Clazz.defineMethod (c$, "match", \r
-function (ch) {\r
-if (this.dontMatch || this.$eos) {\r
-return false;\r
-}return this.c == ch;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "escMatch", \r
-function (ch) {\r
-if (!this.dontMatch || this.$eos) {\r
-return false;\r
-}return this.c == ch;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "escaped", \r
-function () {\r
-return this.dontMatch;\r
-});\r
-Clazz.defineMethod (c$, "incMatch", \r
-function (st) {\r
-var sp =  new com.stevesoft.pat.StrPos (this);\r
-var i;\r
-for (i = 0; i < st.length; i++) {\r
-if (!sp.match (st.charAt (i))) {\r
-return false;\r
-}sp.inc ();\r
-}\r
-this.dup (sp);\r
-return true;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getPatInt", \r
-function () {\r
-if (this.incMatch ("inf")) {\r
-return  new com.stevesoft.pat.patInf ();\r
-}var i;\r
-var cnt = 0;\r
-var sp =  new com.stevesoft.pat.StrPos (this);\r
-for (i = 0; !sp.$eos && sp.c >= '0' && sp.c <= '9'; i++) {\r
-cnt = 10 * cnt + sp.c.charCodeAt (0) - 48;\r
-sp.inc ();\r
-}\r
-if (i == 0) {\r
-return null;\r
-}this.dup (sp);\r
-return  new com.stevesoft.pat.patInt (cnt);\r
-});\r
-Clazz.defineMethod (c$, "getString", \r
-function () {\r
-return this.s;\r
-});\r
-});\r
+Clazz.declarePackage ("com.stevesoft.pat");
+Clazz.load (null, "com.stevesoft.pat.StrPos", ["com.stevesoft.pat.patInf", "$.patInt"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.s = null;
+this.$pos = 0;
+this.esc = '\\';
+this.c = '\0';
+this.dontMatch = false;
+this.$eos = false;
+Clazz.instantialize (this, arguments);
+}, com.stevesoft.pat, "StrPos");
+Clazz.defineMethod (c$, "pos", 
+function () {
+return this.$pos;
+});
+Clazz.defineMethod (c$, "thisChar", 
+function () {
+return this.c;
+});
+Clazz.defineMethod (c$, "eos", 
+function () {
+return this.$eos;
+});
+Clazz.makeConstructor (c$, 
+function (sp) {
+this.dup (sp);
+}, "com.stevesoft.pat.StrPos");
+Clazz.defineMethod (c$, "dup", 
+function (sp) {
+this.s = sp.s;
+this.$pos = sp.$pos;
+this.c = sp.c;
+this.dontMatch = sp.dontMatch;
+this.$eos = sp.$eos;
+}, "com.stevesoft.pat.StrPos");
+Clazz.makeConstructor (c$, 
+function (s, pos) {
+this.s = s;
+this.$pos = pos - 1;
+this.inc ();
+}, "~S,~N");
+Clazz.defineMethod (c$, "inc", 
+function () {
+this.$pos++;
+if (this.$pos >= this.s.length) {
+this.$eos = true;
+return this;
+}this.$eos = false;
+this.c = this.s.charAt (this.$pos);
+if (this.c == this.esc && this.$pos + 1 < this.s.length) {
+this.$pos++;
+this.c = this.s.charAt (this.$pos);
+if (this.c != this.esc) {
+this.dontMatch = true;
+} else {
+this.dontMatch = false;
+}} else {
+this.dontMatch = false;
+}return this;
+});
+Clazz.defineMethod (c$, "match", 
+function (ch) {
+if (this.dontMatch || this.$eos) {
+return false;
+}return this.c == ch;
+}, "~S");
+Clazz.defineMethod (c$, "escMatch", 
+function (ch) {
+if (!this.dontMatch || this.$eos) {
+return false;
+}return this.c == ch;
+}, "~S");
+Clazz.defineMethod (c$, "escaped", 
+function () {
+return this.dontMatch;
+});
+Clazz.defineMethod (c$, "incMatch", 
+function (st) {
+var sp =  new com.stevesoft.pat.StrPos (this);
+var i;
+for (i = 0; i < st.length; i++) {
+if (!sp.match (st.charAt (i))) {
+return false;
+}sp.inc ();
+}
+this.dup (sp);
+return true;
+}, "~S");
+Clazz.defineMethod (c$, "getPatInt", 
+function () {
+if (this.incMatch ("inf")) {
+return  new com.stevesoft.pat.patInf ();
+}var i;
+var cnt = 0;
+var sp =  new com.stevesoft.pat.StrPos (this);
+for (i = 0; !sp.$eos && sp.c >= '0' && sp.c <= '9'; i++) {
+cnt = 10 * cnt + sp.c.charCodeAt (0) - 48;
+sp.inc ();
+}
+if (i == 0) {
+return null;
+}this.dup (sp);
+return  new com.stevesoft.pat.patInt (cnt);
+});
+Clazz.defineMethod (c$, "getString", 
+function () {
+return this.s;
+});
+});