Lines Matching refs:len
39 void* Symbol::operator new(size_t sz, int len, TRAPS) {
40 int alloc_size = object_size(len)*HeapWordSize;
46 void* Symbol::operator new(size_t sz, int len, Arena* arena, TRAPS) {
47 int alloc_size = object_size(len)*HeapWordSize;
57 bool Symbol::equals(const char* str, int len) const {
59 if (l != len) return false;
74 bool Symbol::starts_with(const char* prefix, int len) const {
75 if (len > utf8_length()) return false;
76 while (len-- > 0) {
77 if (prefix[len] != (char) byte_at(len))
80 assert(len == -1, "we should be at the beginning");
90 int Symbol::index_of_at(int i, const char* str, int len) const {
92 if (len <= 0) return 0;
95 address limit = bytes + utf8_length() - len; // inclusive limit
104 if (memcmp(scan, str, len) == 0)
113 int len = MIN2(size - 1, utf8_length());
114 for (int i = 0; i < len; i++) {
117 buf[len] = '\0';
123 int len = utf8_length();
124 char* str = NEW_RESOURCE_ARRAY(char, len + 1);
125 return as_C_string(str, len + 1);
131 int len = utf8_length();
132 int buf_len = len + 1;