Lines Matching defs:cc
75 char[] cc = new char[cbf.position()];
76 cbf.flip(); cbf.get(cc);
77 return cc;
104 static byte[] encode(char[] cc, Charset cs, boolean testDirect, Time t)
111 bbf = ByteBuffer.allocateDirect(cc.length * 4);
112 cbf = ByteBuffer.allocateDirect(cc.length * 2).asCharBuffer();
113 cbf.put(cc).flip();
115 bbf = ByteBuffer.allocate(cc.length * 4);
116 cbf = CharBuffer.wrap(cc);
131 System.out.printf(" cr=%s, cbf.pos=%d, cc[pos]=%x%n",
132 cr.toString(), pos, cc[pos]&0xffff);
140 static CoderResult encodeCR(char[] cc, Charset cs, boolean testDirect)
146 bbf = ByteBuffer.allocateDirect(cc.length * 4);
147 cbf = ByteBuffer.allocateDirect(cc.length * 2).asCharBuffer();
148 cbf.put(cc).flip();
150 bbf = ByteBuffer.allocate(cc.length * 4);
151 cbf = CharBuffer.wrap(cc);
178 char[] cc = new char[0x10000];
224 cc[pos++] = c;
227 return Arrays.copyOf(cc, pos);
317 static void compare(Charset cs1, Charset cs2, char[] cc) throws Exception {
329 byte[] bb1 = encode(cc, cs1, false, t1);
330 byte[] bb2 = encode(cc, cs2, false, t2);
350 bb1 = encode(cc, cs1, true, t1);
351 bb2 = encode(cc, cs2, true, t2);
537 char[] cc = checkEncoding(csOld, csNew);
539 compare(csNew, csOld, cc);