Lines Matching defs:cc
74 char[] cc = new char[cbf.position()];
75 cbf.flip(); cbf.get(cc);
76 return cc;
103 static byte[] encode(char[] cc, Charset cs, boolean testDirect, Time t)
110 bbf = ByteBuffer.allocateDirect(cc.length * 4);
111 cbf = ByteBuffer.allocateDirect(cc.length * 2).asCharBuffer();
112 cbf.put(cc).flip();
114 bbf = ByteBuffer.allocate(cc.length * 4);
115 cbf = CharBuffer.wrap(cc);
130 System.out.printf(" cr=%s, cbf.pos=%d, cc[pos]=%x%n",
131 cr.toString(), pos, cc[pos]&0xffff);
139 static CoderResult encodeCR(char[] cc, Charset cs, boolean testDirect)
145 bbf = ByteBuffer.allocateDirect(cc.length * 4);
146 cbf = ByteBuffer.allocateDirect(cc.length * 2).asCharBuffer();
147 cbf.put(cc).flip();
149 bbf = ByteBuffer.allocate(cc.length * 4);
150 cbf = CharBuffer.wrap(cc);
177 char[] cc = new char[0x10000];
223 cc[pos++] = c;
226 return Arrays.copyOf(cc, pos);
316 static void compare(Charset cs1, Charset cs2, char[] cc) throws Exception {
328 byte[] bb1 = encode(cc, cs1, false, t1);
329 byte[] bb2 = encode(cc, cs2, false, t2);
349 bb1 = encode(cc, cs1, true, t1);
350 bb2 = encode(cc, cs2, true, t2);
527 char[] cc = checkEncoding(csOld, csNew);
529 compare(csNew, csOld, cc);