Lines Matching refs:ch

1461      * <code>ch</code> occurs in the character sequence represented by
1464 * values of <code>ch</code> in the range from 0 to 0xFFFF
1467 * this.charAt(<i>k</i>) == ch
1469 * is true. For other values of <code>ch</code>, it is the
1472 * this.codePointAt(<i>k</i>) == ch
1477 * @param ch a character (Unicode code point).
1482 public int indexOf(int ch) {
1483 return indexOf(ch, 0);
1490 * If a character with value <code>ch</code> occurs in the
1494 * of <code>ch</code> in the range from 0 to 0xFFFF (inclusive),
1497 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> &gt;= fromIndex)
1499 * is true. For other values of <code>ch</code>, it is the
1502 * (this.codePointAt(<i>k</i>) == ch) && (<i>k</i> &gt;= fromIndex)
1518 * @param ch a character (Unicode code point).
1525 public int indexOf(int ch, int fromIndex) {
1534 if (ch < Character.MIN_SUPPLEMENTARY_CODE_POINT) {
1535 // handle most cases here (ch is a BMP code point or a
1539 if (value[i] == ch) {
1545 return indexOfSupplementary(ch, fromIndex);
1552 private int indexOfSupplementary(int ch, int fromIndex) {
1553 if (Character.isValidCodePoint(ch)) {
1555 final char hi = Character.highSurrogate(ch);
1556 final char lo = Character.lowSurrogate(ch);
1569 * the specified character. For values of <code>ch</code> in the
1573 * this.charAt(<i>k</i>) == ch
1575 * is true. For other values of <code>ch</code>, it is the
1578 * this.codePointAt(<i>k</i>) == ch
1585 * @param ch a character (Unicode code point).
1590 public int lastIndexOf(int ch) {
1591 return lastIndexOf(ch, value.length - 1);
1597 * specified index. For values of <code>ch</code> in the range
1601 * (this.charAt(<i>k</i>) == ch) && (<i>k</i> &lt;= fromIndex)
1603 * is true. For other values of <code>ch</code>, it is the
1606 * (this.codePointAt(<i>k</i>) == ch) && (<i>k</i> &lt;= fromIndex)
1615 * @param ch a character (Unicode code point).
1628 public int lastIndexOf(int ch, int fromIndex) {
1629 if (ch < Character.MIN_SUPPLEMENTARY_CODE_POINT) {
1630 // handle most cases here (ch is a BMP code point or a
1635 if (value[i] == ch) {
1641 return lastIndexOfSupplementary(ch, fromIndex);
1648 private int lastIndexOfSupplementary(int ch, int fromIndex) {
1649 if (Character.isValidCodePoint(ch)) {
1651 char hi = Character.highSurrogate(ch);
1652 char lo = Character.lowSurrogate(ch);
2271 char ch = 0;
2273 ".$|()[{^?*+\\".indexOf(ch = regex.charAt(0)) == -1) ||
2276 (((ch = regex.charAt(1))-'0')|('9'-ch)) < 0 &&
2277 ((ch-'a')|('z'-ch)) < 0 &&
2278 ((ch-'A')|('Z'-ch)) < 0)) &&
2279 (ch < Character.MIN_HIGH_SURROGATE ||
2280 ch > Character.MAX_LOW_SURROGATE))
2286 while ((next = indexOf(ch, off)) != -1) {