• Home
  • Raw
  • Download

Lines Matching refs:ch

133   this.ch = '\0';
138 var ch = s.charAt(i);
139 if ('&' == ch) {
145 ch = '<';
147 ch = '>';
149 ch = '"';
151 ch = '\'';
153 ch = '&';
160 this.ch = ch;
161 return this.ch;
166 function PR_isWordChar(ch) { argument
167 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');
170 function PR_isIdentifierStart(ch) { argument
171 return PR_isWordChar(ch) || ch == '_' || ch == '$' || ch == '@';
174 function PR_isIdentifierPart(ch) { argument
175 return PR_isIdentifierStart(ch) || PR_isDigitChar(ch);
178 function PR_isSpaceChar(ch) { argument
179 return "\t \r\n".indexOf(ch) >= 0;
182 function PR_isDigitChar(ch) { argument
183 return ch >= '0' && ch <= '9';
232 var ch = s.charAt(i);
235 if ('<' == ch) { state = 1; }
239 if ('/' == ch) { state = 2; }
240 else if (PR_isWordChar(ch)) { state = 3; }
241 else if ('<' == ch) { state = 1; }
245 if (PR_isWordChar(ch)) { state = 3; }
246 else if ('<' == ch) { state = 1; }
250 if ('>' == ch) {
284 var ch = s.charAt(i);
287 if ('&' == ch) { state = 1; }
290 if ('#' == ch || PR_isWordChar(ch)) {
298 if (';' == ch) {
415 var ch = decodeHelper.ch;
421 if ('<' == ch) { state = 1; }
425 if ('/' == ch) { // only consider close tags if we're in script/style
428 if ('!' == ch) {
430 } else if (PR_isWordChar(ch)) {
432 } else if ('?' == ch) {
434 } else if ('%' == ch) {
436 } else if ('<' != ch) {
439 } else if ('<' != ch) {
444 if ('-' == ch) {
446 } else if (PR_isWordChar(ch)) {
448 } else if ('<' == ch) {
455 if ('>' == ch) {
461 if ('-' == ch) { state = 5; }
464 if ('-' == ch) { state = 6; }
467 if ('>' == ch) {
470 } else if ('-' == ch) {
477 if (PR_isWordChar(ch)) {
479 } else if ('<' == ch) {
486 if ('>' == ch) {
492 if ('?' == ch) { state = 10; }
495 if ('>' == ch) {
498 } else if ('?' != ch) {
503 if ('%' == ch) { state = 12; }
506 if ('>' == ch) {
509 } else if ('%' != ch) {
516 tokenChars[tokenCharsI++] = ch.toLowerCase();
572 var ch = s.charAt(i);
574 if (ch == '"' || ch == '\'' || ch == '`') {
577 delim = ch;
578 } else if (ch == '/') {
580 } else if (ch == '#') {
585 if (ch == delim) {
588 } else if (ch == '\\') {
594 if (ch == '/') {
597 } else if (ch == '*') {
607 if (ch == '\r' || ch == '\n') {
612 if (ch == '*') {
616 if (ch == '/') {
619 } else if (ch != '*') {
639 var ch = s.charAt(i);
651 if (PR_isIdentifierStart(ch)) {
653 } else if (PR_isDigitChar(ch)) {
655 } else if (!PR_isSpaceChar(ch)) {
665 if (!PR_isIdentifierPart(ch)) {
676 if (!(PR_isDigitChar(ch) || PR_isWordChar(ch) || ch == '_')) {
681 if (PR_isIdentifierStart(ch) || PR_isDigitChar(ch) ||
682 PR_isSpaceChar(ch)) {
774 var ch = decodeHelper.ch;
779 if (ch == '>') {
787 if ('<' == ch) { state = 1; }
790 if (PR_isSpaceChar(ch)) { state = 2; }
793 if (!PR_isSpaceChar(ch)) {
800 if ('=' == ch) {
804 } else if (PR_isSpaceChar(ch)) {
811 if ('=' == ch) {
813 } else if (!PR_isSpaceChar(ch)) {
820 if ('"' == ch || '\'' == ch) {
824 delim = ch;
825 } else if (!PR_isSpaceChar(ch)) {
832 if (ch == delim) {
839 if (PR_isSpaceChar(ch)) {
898 if ('%' == decodeHelper.ch || '?' == decodeHelper.ch) {
899 endScriptTag = decodeHelper.ch;