RSTRING 10 ext/-test-/string/capacity.c LONG2FIX(RSTRING(str)->as.heap.aux.capa); RSTRING 63 ext/-test-/string/cstr.c RSTRING(str)->basic.flags &= ~RSTRING_EMBED_LEN_MASK; RSTRING 64 ext/-test-/string/cstr.c RSTRING(str)->basic.flags |= len << RSTRING_EMBED_LEN_SHIFT; RSTRING 65 ext/-test-/string/cstr.c memmove(RSTRING(str)->as.ary, RSTRING(str)->as.ary + beg, len); RSTRING 68 ext/-test-/string/cstr.c RSTRING(str)->as.heap.ptr += beg; RSTRING 69 ext/-test-/string/cstr.c RSTRING(str)->as.heap.len = len; RSTRING 114 ext/-test-/string/cstr.c RSTRING(str2)->as.heap.aux.capa = capacity; RSTRING 115 ext/-test-/string/cstr.c RSTRING(str2)->as.heap.ptr = buf; RSTRING 116 ext/-test-/string/cstr.c RSTRING(str2)->as.heap.len = RSTRING_LEN(str); RSTRING 11 ext/tk/stubs.c #define RSTRING_PTR(s) (RSTRING(s)->ptr) RSTRING 12 ext/tk/stubs.c #define RSTRING_LEN(s) (RSTRING(s)->len) RSTRING 35 ext/tk/tcltklib.c #define RSTRING_PTR(s) (RSTRING(s)->ptr) RSTRING 36 ext/tk/tcltklib.c #define RSTRING_LEN(s) (RSTRING(s)->len) RSTRING 33 ext/tk/tkutil/tkutil.c #define RSTRING_PTR(s) (RSTRING(s)->ptr) RSTRING 34 ext/tk/tkutil/tkutil.c #define RSTRING_LEN(s) (RSTRING(s)->len) RSTRING 714 ext/zlib/zlib.c new_str = ruby_xrealloc(RSTRING(z->buf)->as.heap.ptr, len + 1); RSTRING 717 ext/zlib/zlib.c RSTRING(z->buf)->as.heap.ptr = new_str; RSTRING 718 ext/zlib/zlib.c RSTRING(z->buf)->as.heap.ptr[len] = '\0'; /* sentinel */ RSTRING 719 ext/zlib/zlib.c RSTRING(z->buf)->as.heap.len = RSTRING 720 ext/zlib/zlib.c RSTRING(z->buf)->as.heap.aux.capa = len; RSTRING 966 include/ruby/ruby.h RSTRING(str)->as.heap.len) RSTRING 969 include/ruby/ruby.h RSTRING(str)->as.ary : \ RSTRING 970 include/ruby/ruby.h RSTRING(str)->as.heap.ptr) RSTRING 973 include/ruby/ruby.h (RSTRING(str)->as.ary + RSTRING_EMBED_LEN(str)) : \ RSTRING 974 include/ruby/ruby.h (RSTRING(str)->as.heap.ptr + RSTRING(str)->as.heap.len)) RSTRING 978 include/ruby/ruby.h ((ptrvar) = RSTRING(str)->as.ary, (lenvar) = RSTRING_EMBED_LEN(str)) : \ RSTRING 979 include/ruby/ruby.h ((ptrvar) = RSTRING(str)->as.heap.ptr, (lenvar) = RSTRING(str)->as.heap.len)) RSTRING 100 string.c RSTRING(str)->as.heap.len = (n);\ RSTRING 111 string.c RSTRING(str)->as.heap.len--;\ RSTRING 134 string.c RSTRING(str)->as.heap.ptr = tmp;\ RSTRING 135 string.c RSTRING(str)->as.heap.len = tlen;\ RSTRING 137 string.c RSTRING(str)->as.heap.aux.capa = (capacity);\ RSTRING 142 string.c REALLOC_N(RSTRING(str)->as.heap.ptr, char, (capacity)+termlen);\ RSTRING 143 string.c RSTRING(str)->as.heap.aux.capa = (capacity);\ RSTRING 149 string.c RB_OBJ_WRITE((str), &RSTRING(str)->as.heap.aux.shared, (shared_str)); \ RSTRING 154 string.c #define STR_HEAP_PTR(str) (RSTRING(str)->as.heap.ptr) RSTRING 155 string.c #define STR_HEAP_SIZE(str) (RSTRING(str)->as.heap.aux.capa + TERM_LEN(str)) RSTRING 270 string.c str = str_new_static(rb_cString, RSTRING(str)->as.heap.ptr, RSTRING 271 string.c RSTRING(str)->as.heap.len, RSTRING 656 string.c return RSTRING(str)->as.heap.len; RSTRING 659 string.c return RSTRING(str)->as.heap.aux.capa; RSTRING 698 string.c RSTRING(str)->as.heap.aux.capa = len; RSTRING 699 string.c RSTRING(str)->as.heap.ptr = ALLOC_N(char, len + termlen); RSTRING 801 string.c RSTRING(str)->as.heap.len = len; RSTRING 802 string.c RSTRING(str)->as.heap.ptr = (char *)ptr; RSTRING 803 string.c RSTRING(str)->as.heap.aux.capa = len; RSTRING 1056 string.c char *ptr2 = RSTRING(str2)->as.ary; RSTRING 1066 string.c RSTRING(str2)->as.heap.len = len; RSTRING 1067 string.c RSTRING(str2)->as.heap.ptr = ptr; RSTRING 1118 string.c VALUE shared = RSTRING(orig)->as.heap.aux.shared; RSTRING 1119 string.c long ofs = RSTRING(orig)->as.heap.ptr - RSTRING(shared)->as.heap.ptr; RSTRING 1120 string.c long rest = RSTRING(shared)->as.heap.len - ofs - RSTRING(orig)->as.heap.len; RSTRING 1129 string.c RSTRING(str)->as.heap.ptr += ofs; RSTRING 1130 string.c RSTRING(str)->as.heap.len -= ofs + rest; RSTRING 1146 string.c RSTRING(str)->as.heap.len = RSTRING_LEN(orig); RSTRING 1147 string.c RSTRING(str)->as.heap.ptr = RSTRING_PTR(orig); RSTRING 1148 string.c RSTRING(str)->as.heap.aux.capa = RSTRING(orig)->as.heap.aux.capa; RSTRING 1186 string.c RSTRING(str)->as.heap.aux.capa = capa; RSTRING 1187 string.c RSTRING(str)->as.heap.ptr = ALLOC_N(char, capa+1); RSTRING 1188 string.c RSTRING(str)->as.heap.ptr[0] = '\0'; RSTRING 1272 string.c RSTRING(str)->as.heap.ptr = RSTRING_PTR(str2); RSTRING 1273 string.c RSTRING(str)->as.heap.len = RSTRING_LEN(str2); RSTRING 1276 string.c VALUE shared = RSTRING(str2)->as.heap.aux.shared; RSTRING 1280 string.c RSTRING(str)->as.heap.aux.capa = RSTRING(str2)->as.heap.aux.capa; RSTRING 1316 string.c VALUE shared = RSTRING(str2)->as.heap.aux.shared; RSTRING 1319 string.c RSTRING(str)->as.heap.len = len; RSTRING 1320 string.c RSTRING(str)->as.heap.ptr = RSTRING_PTR(str2); RSTRING 1343 string.c MEMCPY(RSTRING(dup)->as.ary, RSTRING(str)->as.ary, RSTRING 1352 string.c RB_OBJ_WRITE(dup, &RSTRING(dup)->as.heap.aux.shared, str); RSTRING 1356 string.c MEMCPY(RSTRING(dup)->as.ary, RSTRING(str)->as.ary, RSTRING 1434 string.c RSTRING(str)->as.heap.ptr = ALLOC_N(char, capa+termlen); RSTRING 1437 string.c REALLOC_N(RSTRING(str)->as.heap.ptr, char, capa+termlen); RSTRING 1439 string.c RSTRING(str)->as.heap.len = len; RSTRING 1440 string.c TERM_FILL(&RSTRING(str)->as.heap.ptr[len], termlen); RSTRING 1442 string.c memcpy(RSTRING(str)->as.heap.ptr, RSTRING_PTR(orig), len); RSTRING 1446 string.c RSTRING(str)->as.heap.aux.capa = capa; RSTRING 1880 string.c ptr = RSTRING(str)->as.heap.ptr; RSTRING 1882 string.c memcpy(RSTRING(str)->as.ary, ptr, len); RSTRING 1883 string.c TERM_FILL(RSTRING(str)->as.ary + len, termlen); RSTRING 1896 string.c RSTRING(str)->as.heap.ptr = ptr; RSTRING 1897 string.c RSTRING(str)->as.heap.len = len; RSTRING 1898 string.c RSTRING(str)->as.heap.aux.capa = capa; RSTRING 1928 string.c REALLOC_N(RSTRING(str)->as.heap.ptr, char, capa + termlen); RSTRING 1929 string.c RSTRING(str)->as.heap.aux.capa = capa; RSTRING 1955 string.c RSTRING(str)->as.heap.ptr = 0; RSTRING 1956 string.c RSTRING(str)->as.heap.len = 0; RSTRING 2227 string.c RSTRING(str2)->as.heap.ptr += beg; RSTRING 2228 string.c olen = RSTRING(str2)->as.heap.len; RSTRING 2229 string.c if (olen > len) RSTRING(str2)->as.heap.len = len; RSTRING 2346 string.c RSTRING(str2)->as.heap.ptr += ofs; RSTRING 2347 string.c RSTRING(str2)->as.heap.len = len; RSTRING 2476 string.c TERM_FILL(RSTRING(str)->as.ary + len, termlen); RSTRING 2485 string.c if (slen > 0) MEMCPY(RSTRING(str)->as.ary, ptr, char, slen); RSTRING 2486 string.c TERM_FILL(RSTRING(str)->as.ary + len, termlen); RSTRING 2495 string.c else if ((capa = RSTRING(str)->as.heap.aux.capa) < len || RSTRING 2497 string.c REALLOC_N(RSTRING(str)->as.heap.ptr, char, len + termlen); RSTRING 2498 string.c RSTRING(str)->as.heap.aux.capa = len; RSTRING 2501 string.c RSTRING(str)->as.heap.len = len; RSTRING 2502 string.c TERM_FILL(RSTRING(str)->as.heap.ptr + len, termlen); /* sentinel */ RSTRING 2522 string.c sptr = RSTRING(str)->as.ary; RSTRING 2526 string.c capa = RSTRING(str)->as.heap.aux.capa; RSTRING 2527 string.c sptr = RSTRING(str)->as.heap.ptr; RSTRING 2528 string.c olen = RSTRING(str)->as.heap.len; RSTRING 4149 string.c ptr = RSTRING(str)->as.ary; RSTRING 4155 string.c ptr = RSTRING(str)->as.heap.ptr += len; RSTRING 4156 string.c RSTRING(str)->as.heap.len = nlen; RSTRING 5052 string.c RSTRING(str2)->as.heap.ptr += beg; RSTRING 5053 string.c RSTRING(str2)->as.heap.len = len; RSTRING 6360 string.c RSTRING(str)->as.heap.ptr = buf; RSTRING 6361 string.c RSTRING(str)->as.heap.len = t - buf; RSTRING 6363 string.c RSTRING(str)->as.heap.aux.capa = max; RSTRING 6436 string.c RSTRING(str)->as.heap.ptr = buf; RSTRING 6437 string.c RSTRING(str)->as.heap.len = t - buf; RSTRING 6439 string.c RSTRING(str)->as.heap.aux.capa = max;