Lines Matching refs:cc

51         char[] cc = new char[cbf.position()];
52 cbf.flip(); cbf.get(cc);
53 return cc;
99 static byte[] encode(char[] cc, String csn, boolean testDirect)
105 bbf = ByteBuffer.allocateDirect(cc.length * 4);
106 cbf = ByteBuffer.allocateDirect(cc.length * 2).asCharBuffer();
107 cbf.put(cc).flip();
109 bbf = ByteBuffer.allocate(cc.length * 4);
110 cbf = CharBuffer.wrap(cc);
121 static CoderResult encodeCR(char[] cc, String csn, boolean testDirect)
127 bbf = ByteBuffer.allocateDirect(cc.length * 4);
128 cbf = ByteBuffer.allocateDirect(cc.length * 2).asCharBuffer();
129 cbf.put(cc).flip();
131 bbf = ByteBuffer.allocate(cc.length * 4);
132 cbf = CharBuffer.wrap(cc);
138 char[] cc = new char[0x10000 - 0xe000 + 0xd800 + //bmp
143 cc[pos++] = (char)i;
145 cc[pos++] = (char)i;
147 pos += Character.toChars(i, cc, pos);
149 return cc;
161 char[] cc = getUTFChars();
162 byte[] bb = encode(cc, csn, false);
165 if (!Arrays.equals(cc, ccO)) {
168 bb = encode(cc, csn, true);
170 if (!Arrays.equals(cc, ccO)) {
174 if (!Arrays.equals(bb, new String(cc).getBytes(csn))) {
177 if (!Arrays.equals(cc, new String(bb, csn).toCharArray())) {
186 char[] cc = new char[(0x110000 - 0x10000) * 2];
190 Character.toChars(i, cc, cpos);
191 bpos += to3ByteUTF8(cc[cpos], bb, bpos);
192 bpos += to3ByteUTF8(cc[cpos + 1], bb, bpos);
197 if (!Arrays.equals(cc, ccO)) {
201 if (!Arrays.equals(cc, ccO)) {
207 if (!Arrays.equals(cc, new String(bb, csn).toCharArray())) {
214 char[] cc = getUTFChars();
216 byte[] bb1 = encode(cc, csn1, false);
217 byte[] bb2 = encode(cc, csn2, false);
226 bb1 = encode(cc, csn1, true);
227 bb2 = encode(cc, csn2, true);