Lines Matching refs:ch

1777     private void accept(int ch, String s) {
1781 if (ch != testChar) {
1797 int ch = temp[cursor];
1799 ch = peekPastWhitespace(ch);
1800 return ch;
1807 int ch = temp[cursor++];
1809 ch = parsePastWhitespace(ch);
1810 return ch;
1818 int ch = temp[cursor++];
1819 return ch;
1826 int ch = temp[++cursor];
1828 ch = peekPastWhitespace(ch);
1829 return ch;
1837 int ch = temp[++cursor];
1838 return ch;
1844 private int peekPastWhitespace(int ch) {
1845 while (ASCII.isSpace(ch) || ch == '#') {
1846 while (ASCII.isSpace(ch))
1847 ch = temp[++cursor];
1848 if (ch == '#') {
1849 ch = peekPastLine();
1852 return ch;
1858 private int parsePastWhitespace(int ch) {
1859 while (ASCII.isSpace(ch) || ch == '#') {
1860 while (ASCII.isSpace(ch))
1861 ch = temp[cursor++];
1862 if (ch == '#')
1863 ch = parsePastLine();
1865 return ch;
1872 int ch = temp[cursor++];
1873 while (ch != 0 && !isLineSeparator(ch))
1874 ch = temp[cursor++];
1875 return ch;
1882 int ch = temp[++cursor];
1883 while (ch != 0 && !isLineSeparator(ch))
1884 ch = temp[++cursor];
1885 return ch;
1891 private boolean isLineSeparator(int ch) {
1893 return ch == '\n';
1895 return (ch == '\n' ||
1896 ch == '\r' ||
1897 (ch|1) == '\u2029' ||
1898 ch == '\u0085');
1907 int ch = temp[i+1];
1909 return ch;
1943 private static final boolean isSupplementary(int ch) {
1944 return ch >= Character.MIN_SUPPLEMENTARY_CODE_POINT ||
1945 Character.isSurrogate((char)ch);
2013 int ch = peek();
2014 switch (ch) {
2033 ch = nextEscaped();
2034 if (ch == 'p' || ch == 'P') {
2036 boolean comp = (ch == 'P');
2037 ch = next(); // Consume { if present
2038 if (ch != '{') {
2090 throw error("Dangling meta character '" + ((char)ch) + "'");
2125 int ch = peek();
2127 switch (ch) {
2146 ch = nextEscaped();
2147 if (ch == 'p' || ch == 'P') { // Property
2152 boolean comp = (ch == 'P');
2154 ch = next(); // Consume { if present
2155 if (ch != '{')
2164 ch = escape(false, first == 0);
2165 if (ch >= 0) {
2166 append(ch, first);
2168 if (isSupplementary(ch)) {
2171 ch = peek();
2186 append(ch, first);
2188 if (isSupplementary(ch)) {
2191 ch = next();
2203 private void append(int ch, int len) {
2209 buffer[len] = ch;
2221 int ch = peek();
2222 switch(ch) {
2233 int newRefNum = (refNum * 10) + (ch - '0');
2263 int ch = skip();
2264 switch (ch) {
2278 root = ref((ch - '0'));
2414 return ch;
2432 int ch = next();
2434 switch (ch) {
2440 ch = next();
2454 ch = peek();
2458 ch = next();
2459 if (ch == '&') {
2460 ch = next();
2462 while (ch != ']' && ch != '&') {
2463 if (ch == '[') {
2472 ch = peek();
2523 ch = peek();
2527 private CharProperty bitsOrSingle(BitClass bits, int ch) {
2546 if (ch < 256 &&
2548 (ch == 0xff || ch == 0xb5 ||
2549 ch == 0x49 || ch == 0x69 || //I and i
2550 ch == 0x53 || ch == 0x73 || //S and s
2551 ch == 0x4b || ch == 0x6b || //K and k
2552 ch == 0xc5 || ch == 0xe5))) //A+ring
2553 return bits.add(ch, flags());
2554 return newSingle(ch);
2562 int ch = peek();
2563 if (ch == '\\') {
2564 ch = nextEscaped();
2565 if (ch == 'p' || ch == 'P') { // A property
2566 boolean comp = (ch == 'P');
2569 ch = next();
2570 if (ch != '{')
2577 ch = escape(true, true);
2578 if (ch == -1)
2582 ch = single();
2584 if (ch >= 0) {
2588 return bitsOrSingle(bits, ch);
2593 if (m < ch)
2596 return caseInsensitiveRangeFor(ch, m);
2598 return rangeFor(ch, m);
2601 return bitsOrSingle(bits, ch);
2603 throw error("Unexpected character '"+((char)ch)+"'");
2607 int ch = peek();
2608 switch (ch) {
2613 return ch;
2738 private String groupname(int ch) {
2740 sb.append(Character.toChars(ch));
2741 while (ASCII.isLower(ch=read()) || ASCII.isUpper(ch) ||
2742 ASCII.isDigit(ch)) {
2743 sb.append(Character.toChars(ch));
2747 if (ch != '>')
2763 int ch = next();
2764 if (ch == '?') {
2765 ch = skip();
2766 switch (ch) {
2777 if (ch == '=') {
2790 ch = read();
2791 if (ASCII.isLower(ch) || ASCII.isUpper(ch)) {
2793 String name = groupname(ch);
2816 if (ch == '=') {
2822 } else if (ch == '!') {
2838 ch = read();
2839 if (ch == ')') {
2842 if (ch != ':') {
2943 int ch = peek();
2945 switch (ch) {
2971 ch = next();
2976 ch = next();
2985 int ch = peek();
2987 switch (ch) {
3014 ch = next();
3035 int ch = peek();
3036 switch (ch) {
3038 ch = next();
3039 if (ch == '?') {
3042 } else if (ch == '+') {
3048 ch = next();
3049 if (ch == '?') {
3052 } else if (ch == '+') {
3058 ch = next();
3059 if (ch == '?') {
3062 } else if (ch == '+') {
3068 ch = temp[cursor+1];
3069 if (ASCII.isDigit(ch)) {
3073 cmin = cmin * 10 + (ch - '0');
3074 } while (ASCII.isDigit(ch = read()));
3076 if (ch == ',') {
3077 ch = read();
3079 if (ch != '}') {
3081 while (ASCII.isDigit(ch)) {
3082 cmax = cmax * 10 + (ch - '0');
3083 ch = read();
3087 if (ch != '}')
3092 ch = peek();
3093 if (ch == '?') {
3096 } else if (ch == '+') {
3153 int ch = 0;
3155 ch = (ch << 4) + ASCII.toDigit(n);
3156 if (ch > Character.MAX_CODE_POINT)
3161 return ch;
3180 int ch = read();
3181 if (!ASCII.isHexDigit(ch)) {
3184 n = n * 16 + ASCII.toDigit(ch);
3280 boolean isSatisfiedBy(int ch) {
3281 return ch < 256 && bits[ch];
3288 private CharProperty newSingle(final int ch) {
3292 upper = Character.toUpperCase(ch);
3296 } else if (ASCII.isAscii(ch)) {
3297 lower = ASCII.toLower(ch);
3298 upper = ASCII.toUpper(ch);
3303 if (isSupplementary(ch))
3304 return new SingleS(ch); // Match a given Unicode character
3305 return new Single(ch); // Match a given BMP character
3517 char ch = seq.charAt(i-1);
3518 if (ch != '\n' && ch != '\r'
3519 && (ch|1) != '\u2029'
3520 && ch != '\u0085' ) {
3524 if (ch == '\r' && seq.charAt(i) == '\n')
3548 char ch = seq.charAt(i-1);
3549 if (ch != '\n') {
3594 char ch = seq.charAt(i);
3595 if (ch != '\r')
3597 ch = seq.charAt(i + 1);
3598 if (ch != '\n')
3611 char ch = seq.charAt(i);
3612 if (ch == '\n') {
3618 } else if (ch == '\r' || ch == '\u0085' ||
3619 (ch|1) == '\u2029') {
3652 char ch = seq.charAt(i);
3653 if (ch == '\n') {
3685 abstract boolean isSatisfiedBy(int ch);
3688 boolean isSatisfiedBy(int ch) {
3689 return ! CharProperty.this.isSatisfiedBy(ch);}};
3693 int ch = Character.codePointAt(seq, i);
3694 return isSatisfiedBy(ch)
3695 && next.match(matcher, i+Character.charCount(ch), seq);
3730 boolean isSatisfiedBy(int ch) {
3731 return ch == c;
3741 boolean isSatisfiedBy(int ch) {
3742 return ch == c;
3756 boolean isSatisfiedBy(int ch) {
3757 return ch == lower || ch == upper;
3769 boolean isSatisfiedBy(int ch) {
3770 return lower == ch ||
3771 lower == Character.toLowerCase(Character.toUpperCase(ch));
3784 boolean isSatisfiedBy(int ch) {
3785 return block == Character.UnicodeBlock.of(ch);
3797 boolean isSatisfiedBy(int ch) {
3798 return script == Character.UnicodeScript.of(ch);
3808 boolean isSatisfiedBy(int ch) {
3809 return (typeMask & (1 << Character.getType(ch))) != 0;
3819 boolean isSatisfiedBy(int ch) {
3820 return uprop.is(ch);
3831 boolean isSatisfiedBy(int ch) {
3832 return ch < 128 && ASCII.isType(ch, ctype);
3998 private static boolean inRange(int lower, int ch, int upper) {
3999 return lower <= ch && ch <= upper;
4008 boolean isSatisfiedBy(int ch) {
4009 return inRange(lower, ch, upper);}};
4020 boolean isSatisfiedBy(int ch) {
4021 if (inRange(lower, ch, upper))
4023 int up = Character.toUpperCase(ch);
4027 boolean isSatisfiedBy(int ch) {
4028 return inRange(lower, ch, upper) ||
4029 ASCII.isAscii(ch) &&
4030 (inRange(lower, ASCII.toUpper(ch), upper) ||
4031 inRange(lower, ASCII.toLower(ch), upper));
4040 boolean isSatisfiedBy(int ch) {
4049 boolean isSatisfiedBy(int ch) {
4050 return (ch != '\n' && ch != '\r'
4051 && (ch|1) != '\u2029'
4052 && ch != '\u0085');
4061 boolean isSatisfiedBy(int ch) {
4062 return ch != '\n';
5150 boolean isSatisfiedBy(int ch) {
5151 return lhs.isSatisfiedBy(ch) || rhs.isSatisfiedBy(ch);}};
5160 boolean isSatisfiedBy(int ch) {
5161 return lhs.isSatisfiedBy(ch) && rhs.isSatisfiedBy(ch);}};
5170 boolean isSatisfiedBy(int ch) {
5171 return ! rhs.isSatisfiedBy(ch) && lhs.isSatisfiedBy(ch);}};
5193 boolean isWord(int ch) {
5194 return useUWORD ? UnicodeProp.WORD.is(ch)
5195 : (ch == '_' || Character.isLetterOrDigit(ch));
5199 int ch;
5208 ch = Character.codePointBefore(seq, i);
5209 left = (isWord(ch) ||
5210 ((Character.getType(ch) == Character.NON_SPACING_MARK)
5215 ch = Character.codePointAt(seq, i);
5216 right = (isWord(ch) ||
5217 ((Character.getType(ch) == Character.NON_SPACING_MARK)
5243 int ch = Character.codePointAt(seq, x);
5244 if (Character.isLetterOrDigit(ch))
5246 if (Character.getType(ch) == Character.NON_SPACING_MARK)
5359 int ch = seq.charAt(i+j);
5360 if (ch != src[j]) {
5363 i += Math.max(j + 1 - lastOcc[ch&0x7F], optoSft[j]);
5412 int ch;
5414 j > 0; j -= Character.charCount(ch), x--) {
5415 ch = Character.codePointBefore(seq, i+j);
5416 if (ch != src[x]) {
5419 int n = Math.max(x + 1 - lastOcc[ch&0x7F], optoSft[x]);
5593 boolean isSatisfiedBy(int ch) {
5594 return Character.isLowerCase(ch);}});
5596 boolean isSatisfiedBy(int ch) {
5597 return Character.isUpperCase(ch);}});
5599 boolean isSatisfiedBy(int ch) {
5600 return Character.isAlphabetic(ch);}});
5602 boolean isSatisfiedBy(int ch) {
5603 return Character.isIdeographic(ch);}});
5605 boolean isSatisfiedBy(int ch) {
5606 return Character.isTitleCase(ch);}});
5608 boolean isSatisfiedBy(int ch) {
5609 return Character.isDigit(ch);}});
5611 boolean isSatisfiedBy(int ch) {
5612 return Character.isDefined(ch);}});
5614 boolean isSatisfiedBy(int ch) {
5615 return Character.isLetter(ch);}});
5617 boolean isSatisfiedBy(int ch) {
5618 return Character.isLetterOrDigit(ch);}});
5620 boolean isSatisfiedBy(int ch) {
5621 return Character.isJavaIdentifierStart(ch);}});
5623 boolean isSatisfiedBy(int ch) {
5624 return Character.isJavaIdentifierPart(ch);}});
5626 boolean isSatisfiedBy(int ch) {
5627 return Character.isUnicodeIdentifierStart(ch);}});
5629 boolean isSatisfiedBy(int ch) {
5630 return Character.isUnicodeIdentifierPart(ch);}});
5632 boolean isSatisfiedBy(int ch) {
5633 return Character.isIdentifierIgnorable(ch);}});
5635 boolean isSatisfiedBy(int ch) {
5636 return Character.isSpaceChar(ch);}});
5638 boolean isSatisfiedBy(int ch) {
5639 return Character.isWhitespace(ch);}});
5641 boolean isSatisfiedBy(int ch) {
5642 return Character.isISOControl(ch);}});
5644 boolean isSatisfiedBy(int ch) {
5645 return Character.isMirrored(ch);}});