Home
last modified time | relevance | path

Searched refs:utf8 (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
DZipCoder.java109 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
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DUTF8CharsetTest.java59 byte utf8[] = s.getBytes("UTF-8"); in test_surrogate()
60 assertEquals(s, new String(utf8, 0, utf8.length, "UTF-8")); in test_surrogate()
DCharsetEncoder2Test.java158 Charset utf8 = Charset.forName("utf-8"); in test_EncodeLjava_nio_CharBufferLjava_nio_ByteBufferB() local
159 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()
/libcore/luni/src/main/native/
Dorg_apache_harmony_xml_ExpatParser.cpp432 static size_t fillBuffer(ParsingContext* parsingContext, const char* utf8, int byteLength) { in fillBuffer() argument
454 utf8, // src in fillBuffer()