Searched refs:utf8 (Results 1 – 4 of 4) sorted by relevance
59 byte utf8[] = s.getBytes("UTF-8"); in test_surrogate()60 assertEquals(s, new String(utf8, 0, utf8.length, "UTF-8")); in test_surrogate()
158 Charset utf8 = Charset.forName("utf-8"); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB() local159 CharsetEncoder encoder = utf8.newEncoder(); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB()187 CharBuffer chars = utf8.newDecoder().decode(bytes); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB()
109 if (utf8 == null) in getBytesUTF8()110 utf8 = new ZipCoder(StandardCharsets.UTF_8); in getBytesUTF8()111 return utf8.getBytes(s); in getBytesUTF8()118 if (utf8 == null) in toStringUTF8()119 utf8 = new ZipCoder(StandardCharsets.UTF_8); in toStringUTF8()120 return utf8.toString(ba, len); in toStringUTF8()131 private ZipCoder utf8; field in ZipCoder
433 static size_t fillBuffer(ParsingContext* parsingContext, const char* utf8, int byteLength) { in fillBuffer() argument455 utf8, // src in fillBuffer()