Searched refs:UTF8 (Results 1 - 18 of 18) sorted by relevance

/openjdk7/hotspot/src/share/vm/utilities/
H A Dutf8.cpp30 char* UTF8::next(const char* str, jchar* value) {
82 char* UTF8::next_character(const char* str, jint* value) {
99 int UTF8::unicode_length(const char* str, int len) {
113 int UTF8::unicode_length(const char* str) {
148 void UTF8::convert_to_unicode(const char* utf8_str, jchar* unicode_str, int unicode_length) {
161 ptr = UTF8::next(ptr, &unicode_str[index]);
167 const jbyte* UTF8::strrchr(const jbyte* base, int length, jbyte c) {
175 bool UTF8::equal(const jbyte* base1, int length1, const jbyte* base2, int length2) {
184 bool UTF8::is_supplementary_character(const unsigned char* str) {
189 jint UTF8
[all...]
H A Dutf8.hpp31 // Low-level interface for UTF8 strings
33 class UTF8 : AllStatic { class in inherits:AllStatic
/openjdk7/jdk/test/java/io/charStreams/
H A DUTF8.java26 @summary Simple heartbeat test of the UTF8 byte->char converter
31 public class UTF8 { class
34 = "This is a simple\ntest of the UTF8\r\nbyte-to-char and char-to-byte\nconverters.";
38 Writer out = new OutputStreamWriter(bo, "UTF8");
44 "UTF8");
/openjdk7/hotspot/src/share/vm/oops/
H A Dsymbol.cpp143 int length = UTF8::unicode_length((const char*)bytes(), utf8_length());
147 ptr = UTF8::next(ptr, &value);
158 length = UTF8::unicode_length((char*)this_ptr->bytes(), utf8_length());
161 UTF8::convert_to_unicode((char*)this_ptr->bytes(), result, length);
H A DinstanceKlass.cpp2042 // The Symbol*'s are in UTF8 encoding. Since we only need to check explicitly
2043 // for ASCII characters ('/', 'L', '['), we can keep them in UTF8 encoding.
2048 const jbyte *last_slash1 = UTF8::strrchr(name1, class_name1->utf8_length(), '/');
2049 const jbyte *last_slash2 = UTF8::strrchr(name2, class_name2->utf8_length(), '/');
2080 return UTF8::equal(name1, length1, name2, length2);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/org/objectweb/asm/
H A DItem.java80 * {@link ClassWriter#DOUBLE}, {@link ClassWriter#UTF8},
229 case ClassWriter.UTF8:
265 case ClassWriter.UTF8:
H A DClassWriter.java241 static final int UTF8 = 1; field in class:ClassWriter
944 * Adds an UTF8 string to the constant pool of the class being build. Does
950 * @return the index of a new or already existing UTF8 item.
953 key.set(UTF8, value, null, null);
956 pool.putByte(UTF8).putUTF8(value);
H A DClassReader.java218 case ClassWriter.UTF8:
351 case ClassWriter.UTF8: {
1925 * Reads an UTF8 string constant pool item in {@link #b b}. <i>This method
1930 * whose value is the index of an UTF8 constant pool item.
1933 * @return the String corresponding to the specified UTF8 item.
1946 * Reads UTF8 string in {@link #b b}.
1948 * @param index start offset of the UTF8 string to be read.
1949 * @param utfLen length of the UTF8 string to be read.
1952 * @return the String corresponding to the specified UTF8 string.
/openjdk7/jdk/src/share/classes/sun/reflect/
H A DUTF8.java32 class UTF8 { class
H A DClassFileAssembler.java103 byte[] bytes = UTF8.encode(str);
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/compact/
H A DCompactParseable.java97 private static final String UTF8 = EncodingMap.getJavaName("UTF-8"); field in class:CompactParseable
125 String encoding = UTF8;
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/
H A DDecoderStateTables.java700 private static final int[] UTF8 = new int[256]; field in class:DecoderStateTables
788 public static final int UTF8(final int index) { method in class:DecoderStateTables
789 return UTF8[index];
819 constructTable(UTF8, UTF8_RANGES);
H A DDecoder.java862 // Reuse UTF8 length states
1473 if (DecoderStateTables.UTF8(b1) == DecoderStateTables.UTF8_ONE_BYTE) {
1487 if (DecoderStateTables.UTF8(b1) == DecoderStateTables.UTF8_ONE_BYTE) {
1497 switch(DecoderStateTables.UTF8(b1)) {
1542 switch(DecoderStateTables.UTF8(b1)) {
/openjdk7/hotspot/src/share/vm/memory/
H A DoopFactory.cpp50 int length = utf8_str == NULL ? 0 : UTF8::unicode_length(utf8_str);
53 UTF8::convert_to_unicode(utf8_str, result->char_at_addr(0), length);
/openjdk7/hotspot/src/share/vm/prims/
H A DnativeLookup.cpp62 bytes = UTF8::next(bytes, &c);
/openjdk7/hotspot/src/share/vm/classfile/
H A DsymbolTable.cpp741 int length = UTF8::unicode_length(utf8_string);
743 UTF8::convert_to_unicode(utf8_string, chars, length);
H A DclassFileParser.cpp4289 guarantee_property((buffer[i] != 0), "Illegal UTF8 string in constant pool in class file %s", CHECK);
4294 if (UTF8::is_supplementary_character(&buffer[i])) {
4295 c = UTF8::get_supplementary_character(&buffer[i]);
4303 classfile_parse_error("Illegal UTF8 string in constant pool in class file %s", CHECK);
4314 classfile_parse_error("Illegal UTF8 string in constant pool in class file %s", CHECK);
4325 classfile_parse_error("Illegal UTF8 string in constant pool in class file %s", CHECK);
4529 char* tmp_p = UTF8::next(p, &ch);
4571 char* tmp_p = UTF8::next_character(p, &unicode_ch);
H A DjavaClasses.cpp231 int length = UTF8::unicode_length(utf8_str);
234 UTF8::convert_to_unicode(utf8_str, value(h_obj())->char_at_addr(0), length);
245 int length = UTF8::unicode_length((char*)symbol->bytes(), symbol->utf8_length());
248 UTF8::convert_to_unicode((char*)symbol->bytes(), value(h_obj())->char_at_addr(0), length);

Completed in 115 milliseconds