Lines Matching refs:ch
68 char ch = s.charAt(i); in countBytes() local
69 if (ch != 0 && ch <= 127) { // U+0000 uses two bytes. in countBytes()
71 } else if (ch <= 2047) { in countBytes()
90 char ch = s.charAt(i); in encode() local
91 if (ch != 0 && ch <= 127) { // U+0000 uses two bytes. in encode()
92 dst[offset++] = (byte) ch; in encode()
93 } else if (ch <= 2047) { in encode()
94 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); in encode()
95 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()
97 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12))); in encode()
98 dst[offset++] = (byte) (0x80 | (0x3f & (ch >> 6))); in encode()
99 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode()