Mercurial > hg > truffle
comparison src/share/vm/utilities/utf8.hpp @ 2177:3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
Summary: move symbols from permgen into C heap and reference count them
Reviewed-by: never, acorn, jmasa, stefank
author | coleenp |
---|---|
date | Thu, 27 Jan 2011 16:11:27 -0800 |
parents | f95d63e2154a |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2176:27e4ea99855d | 2177:3582bf76420e |
---|---|
49 // the surrogate pair when seeing a supplementary character in string, | 49 // the surrogate pair when seeing a supplementary character in string, |
50 // stores the result in value, and returns the end of the current uft8 chararacter. | 50 // stores the result in value, and returns the end of the current uft8 chararacter. |
51 static char* next_character(const char* str, jint* value); | 51 static char* next_character(const char* str, jint* value); |
52 | 52 |
53 // Utility methods | 53 // Utility methods |
54 static jbyte* strrchr(jbyte* base, int length, jbyte c); | 54 static const jbyte* strrchr(const jbyte* base, int length, jbyte c); |
55 static bool equal(jbyte* base1, int length1, jbyte* base2, int length2); | 55 static bool equal(const jbyte* base1, int length1, const jbyte* base2,int length2); |
56 static bool is_supplementary_character(const unsigned char* str); | 56 static bool is_supplementary_character(const unsigned char* str); |
57 static jint get_supplementary_character(const unsigned char* str); | 57 static jint get_supplementary_character(const unsigned char* str); |
58 }; | 58 }; |
59 | 59 |
60 | 60 |