/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | utf8.cpp | 30 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 D | utf8.hpp | 31 // Low-level interface for UTF8 strings 33 class UTF8 : AllStatic { class in inherits:AllStatic
|
/openjdk7/jdk/test/java/io/charStreams/ |
H A D | UTF8.java | 26 @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 D | symbol.cpp | 143 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 D | instanceKlass.cpp | 2042 // 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 D | Item.java | 80 * {@link ClassWriter#DOUBLE}, {@link ClassWriter#UTF8}, 229 case ClassWriter.UTF8: 265 case ClassWriter.UTF8:
|
H A D | ClassWriter.java | 241 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 D | ClassReader.java | 218 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 D | UTF8.java | 32 class UTF8 { class
|
H A D | ClassFileAssembler.java | 103 byte[] bytes = UTF8.encode(str);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/rngom/parse/compact/ |
H A D | CompactParseable.java | 97 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 D | DecoderStateTables.java | 700 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 D | Decoder.java | 862 // 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 D | oopFactory.cpp | 50 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 D | nativeLookup.cpp | 62 bytes = UTF8::next(bytes, &c);
|
/openjdk7/hotspot/src/share/vm/classfile/ |
H A D | symbolTable.cpp | 741 int length = UTF8::unicode_length(utf8_string); 743 UTF8::convert_to_unicode(utf8_string, chars, length);
|
H A D | classFileParser.cpp | 4289 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 D | javaClasses.cpp | 231 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);
|