Lines Matching refs:chars
48 * @param chars the characters that would be converted.
52 public static int getByteLength(char[] chars) {
54 return getByteLength(chars, 0, chars.length);
61 * @param chars the characters that would be converted.
69 public static int getByteLength(char[] chars, int offset, int length) {
74 int c = chars[i];
152 * @param chars the destination array
154 * @param charOffset the offset into chars at which to begin the copy
156 * @param len the amount of information to copy into chars
168 char[] chars, int charOffset,
178 chars[charOffset++] = (char) char1;
185 chars[charOffset++] = (char)(((char1 & 0x1F) << 6) |
193 chars[charOffset++] = (char)(((char1 & 0x0F) << 12) |
207 * @param chars the source character data to convert
218 public static void charsToBytes(char[] chars, int charOffset,
223 int c = chars[i];
260 char[] chars = new char[charLen];
261 UtfOps.bytesToChars(bytes, offset, chars, 0, length, true);
262 return new String(chars, 0, charLen);
275 char[] chars = string.toCharArray();
276 byte[] bytes = new byte[UtfOps.getByteLength(chars)];
277 UtfOps.charsToBytes(chars, 0, bytes, 0, chars.length);