RSTRING_LEN 2043 array.c len += RSTRING_LEN(sep) * (RARRAY_LEN(ary) - 1); RSTRING_LEN 2060 array.c len += RSTRING_LEN(tmp); RSTRING_LEN 4241 bignum.c len = RSTRING_LEN(arg); RSTRING_LEN 4280 bignum.c len = RSTRING_LEN(arg); RSTRING_LEN 4322 bignum.c len = RSTRING_LEN(arg); RSTRING_LEN 4365 bignum.c len = RSTRING_LEN(arg); RSTRING_LEN 4987 bignum.c if (RSTRING_PTR(str)[RSTRING_LEN(str)-1] == '\0') { RSTRING_LEN 4988 bignum.c rb_str_set_len(str, RSTRING_LEN(str)-1); RSTRING_LEN 2737 compile.c if (RSTRING_LEN(lit) == 0) first_lit = LAST_ELEMENT(ret); RSTRING_LEN 7073 compile.c if ((unsigned long)(size + offset) > (unsigned long)RSTRING_LEN(str)) RSTRING_LEN 7829 compile.c long len = RSTRING_LEN(obj); RSTRING_LEN 1281 complex.c if (!rb_isdigit(RSTRING_PTR(s)[RSTRING_LEN(s) - 1])) RSTRING_LEN 1832 complex.c if (!s || memchr(s, '\0', RSTRING_LEN(self))) RSTRING_LEN 1835 complex.c if (s && s[RSTRING_LEN(self)]) { RSTRING_LEN 1838 complex.c s[RSTRING_LEN(self)] = '\0'; RSTRING_LEN 1885 complex.c if (s && s[RSTRING_LEN(self)]) { RSTRING_LEN 1888 complex.c s[RSTRING_LEN(self)] = '\0'; RSTRING_LEN 1614 dir.c wlen = RSTRING_LEN(tmp); RSTRING_LEN 2204 dir.c while (offset < RSTRING_LEN(str)) { RSTRING_LEN 2211 dir.c if (offset >= RSTRING_LEN(str)) break; RSTRING_LEN 2213 dir.c pend = RSTRING_PTR(str) + RSTRING_LEN(str); RSTRING_LEN 897 encoding.c if (isstr2 && RSTRING_LEN(str2) == 0) RSTRING_LEN 900 encoding.c if (isstr1 && RSTRING_LEN(str1) == 0) RSTRING_LEN 783 error.c if (RSTRING_LEN(exc) == 0) { RSTRING_LEN 1286 error.c if (NIL_P(d) || RSTRING_LEN(d) > 65) { RSTRING_LEN 1289 error.c singleton = (RSTRING_LEN(d) > 0 && RSTRING_PTR(d)[0] == '#'); RSTRING_LEN 2264 error.c rb_str_set_len(mesg, RSTRING_LEN(mesg)-1); RSTRING_LEN 2284 error.c rb_str_set_len(mesg, RSTRING_LEN(mesg)-1); RSTRING_LEN 133 eval_error.c elen = RSTRING_LEN(e); RSTRING_LEN 44 ext/-test-/printf/printf.c if (RSTRING_LEN(type) != 1) rb_raise(rb_eArgError, "wrong length(%ld)", RSTRING_LEN(type)); RSTRING_LEN 11 ext/-test-/string/cstr.c len = RSTRING_LEN(str); RSTRING_LEN 25 ext/-test-/string/cstr.c len = RSTRING_LEN(str); RSTRING_LEN 59 ext/-test-/string/cstr.c if (RSTRING_LEN(str) < beg) rb_raise(rb_eIndexError, "beg: %ld", beg); RSTRING_LEN 60 ext/-test-/string/cstr.c if (RSTRING_LEN(str) < beg + len) rb_raise(rb_eIndexError, "end: %ld", beg + len); RSTRING_LEN 108 ext/-test-/string/cstr.c long capacity = RSTRING_LEN(str) + TERM_LEN(str); RSTRING_LEN 116 ext/-test-/string/cstr.c RSTRING(str2)->as.heap.len = RSTRING_LEN(str); RSTRING_LEN 7 ext/-test-/string/enc_str_buf_cat.c return rb_enc_str_buf_cat(str, RSTRING_PTR(str2), RSTRING_LEN(str2), rb_enc_get(str2)); RSTRING_LEN 7 ext/-test-/string/normalize.c return rb_str_normalize_ospath(RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 36 ext/-test-/string/qsort.c l = RSTRING_LEN(str); RSTRING_LEN 711 ext/bigdecimal/bigdecimal.c ssize_t dpower = e - (ssize_t)RSTRING_LEN(digits); RSTRING_LEN 798 ext/bigdecimal/bigdecimal.c denomi_power = power - RSTRING_LEN(digits); RSTRING_LEN 50 ext/cgi/escape/escape.c len = RSTRING_LEN(str); RSTRING_LEN 97 ext/cgi/escape/escape.c len = RSTRING_LEN(str); RSTRING_LEN 216 ext/cgi/escape/escape.c len = RSTRING_LEN(str); RSTRING_LEN 258 ext/cgi/escape/escape.c len = RSTRING_LEN(str); RSTRING_LEN 4192 ext/date/date_core.c slen = RSTRING_LEN(vstr); RSTRING_LEN 4203 ext/date/date_core.c flen = RSTRING_LEN(vfmt); RSTRING_LEN 6656 ext/date/date_core.c len = RSTRING_LEN(vfmt); RSTRING_LEN 88 ext/date/date_parse.c if (!NIL_P(d) && RSTRING_LEN(d) > 2) { RSTRING_LEN 120 ext/date/date_parse.c if (*s == '\'' || RSTRING_LEN(m) > 2) { RSTRING_LEN 136 ext/date/date_parse.c if (*s == '\'' || RSTRING_LEN(d) > 2) { RSTRING_LEN 352 ext/date/date_parse.c l = RSTRING_LEN(str); RSTRING_LEN 384 ext/date/date_parse.c sl = RSTRING_LEN(str) - (sizeof STD - 1); RSTRING_LEN 386 ext/date/date_parse.c dl = RSTRING_LEN(str) - (sizeof DST - 1); RSTRING_LEN 403 ext/date/date_parse.c dl = RSTRING_LEN(str) - (sizeof DST - 1); RSTRING_LEN 413 ext/date/date_parse.c const struct zone *z = zonetab(RSTRING_PTR(str), (unsigned int)RSTRING_LEN(str)); RSTRING_LEN 461 ext/date/date_parse.c a = ALLOCV_N(char, astr, RSTRING_LEN(str) + 1); RSTRING_LEN 478 ext/date/date_parse.c long cl = RSTRING_LEN(str); RSTRING_LEN 514 ext/date/date_parse.c RSTRING_LEN(sign) == 1 && RSTRING_LEN 598 ext/date/date_parse.c f_expt(INT2FIX(10), LONG2NUM(RSTRING_LEN(f)))); RSTRING_LEN 1733 ext/date/date_parse.c l2 = RSTRING_LEN(s2); RSTRING_LEN 1849 ext/date/date_parse.c l3 = RSTRING_LEN(s3); RSTRING_LEN 1880 ext/date/date_parse.c l4 = RSTRING_LEN(s4); RSTRING_LEN 1888 ext/date/date_parse.c l5 = RSTRING_LEN(s5); RSTRING_LEN 2053 ext/date/date_parse.c for (i = 0; i < RSTRING_LEN(s); i++) RSTRING_LEN 2074 ext/date/date_parse.c for (i = 0; i < RSTRING_LEN(s); i++) { RSTRING_LEN 2282 ext/date/date_parse.c LONG2NUM(RSTRING_LEN(f)))); RSTRING_LEN 2303 ext/date/date_parse.c if (RSTRING_LEN(s[1]) < 4) RSTRING_LEN 2318 ext/date/date_parse.c if (RSTRING_LEN(s[4]) < 4) RSTRING_LEN 2328 ext/date/date_parse.c if (RSTRING_LEN(s[6]) < 4) RSTRING_LEN 2389 ext/date/date_parse.c if (RSTRING_LEN(s[1]) < 4) RSTRING_LEN 2403 ext/date/date_parse.c if (RSTRING_LEN(s[4]) < 4) RSTRING_LEN 2414 ext/date/date_parse.c if (RSTRING_LEN(s[7]) < 4) RSTRING_LEN 2774 ext/date/date_parse.c if (RSTRING_LEN(s[4]) < 4) RSTRING_LEN 26 ext/dbm/dbm.c # define RSTRING_DSIZE(s) RSTRING_LEN(s) RSTRING_LEN 272 ext/dbm/dbm.c len = RSTRING_LEN(keystr); RSTRING_LEN 340 ext/dbm/dbm.c len = RSTRING_LEN(valstr); RSTRING_LEN 348 ext/dbm/dbm.c if ((long)val.dsize == RSTRING_LEN(valstr) && RSTRING_LEN 437 ext/dbm/dbm.c len = RSTRING_LEN(keystr); RSTRING_LEN 532 ext/dbm/dbm.c key.dsize = (DSIZE_TYPE)RSTRING_LEN(keystr); RSTRING_LEN 875 ext/dbm/dbm.c len = RSTRING_LEN(keystr); RSTRING_LEN 903 ext/dbm/dbm.c len = RSTRING_LEN(valstr); RSTRING_LEN 911 ext/dbm/dbm.c if ((DSIZE_TYPE)val.dsize == (DSIZE_TYPE)RSTRING_LEN(valstr) && RSTRING_LEN 37 ext/digest/bubblebabble/bubblebabble.c digest_len = RSTRING_LEN(str_digest); RSTRING_LEN 112 ext/digest/digest.c digest_len = RSTRING_LEN(str_digest); RSTRING_LEN 385 ext/digest/digest.c if (RSTRING_LEN(str1) == RSTRING_LEN(str2) && RSTRING_LEN 409 ext/digest/digest.c return INT2NUM(RSTRING_LEN(digest)); RSTRING_LEN 627 ext/digest/digest.c algo->update_func(pctx, (unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 656 ext/fiddle/pointer.c ptr = rb_fiddle_ptr_new(str, RSTRING_LEN(val), NULL); RSTRING_LEN 338 ext/gdbm/gdbm.c len = RSTRING_LEN(keystr); RSTRING_LEN 379 ext/gdbm/gdbm.c len = RSTRING_LEN(keystr); RSTRING_LEN 460 ext/gdbm/gdbm.c (int)RSTRING_LEN(valstr) == (int)RSTRING_LEN(valstr2) && RSTRING_LEN 462 ext/gdbm/gdbm.c (int)RSTRING_LEN(valstr)) == 0) { RSTRING_LEN 542 ext/gdbm/gdbm.c len = RSTRING_LEN(keystr); RSTRING_LEN 1029 ext/gdbm/gdbm.c (int)RSTRING_LEN(valstr) == (int)RSTRING_LEN(valstr2) && RSTRING_LEN 1031 ext/gdbm/gdbm.c (int)RSTRING_LEN(valstr)) == 0) { RSTRING_LEN 739 ext/io/console/console.c t = console_win32_vk(kn, RSTRING_LEN(k)); RSTRING_LEN 82 ext/objspace/object_tracing.c const char *path_cstr = RTEST(path) ? make_unique_str(arg->str_table, RSTRING_PTR(path), RSTRING_LEN(path)) : 0; RSTRING_LEN 84 ext/objspace/object_tracing.c const char *class_path_cstr = RTEST(class_path) ? make_unique_str(arg->str_table, RSTRING_PTR(class_path), RSTRING_LEN(class_path)) : 0; RSTRING_LEN 60 ext/objspace/objspace_dump.c for (i = 0, value = RSTRING_PTR(obj); i < RSTRING_LEN(obj); i++) { RSTRING_LEN 183 ext/objspace/objspace_dump.c dump_append(dc, ", \"bytesize\":%ld", RSTRING_LEN(obj)); RSTRING_LEN 184 ext/objspace/objspace_dump.c if (!STR_EMBED_P(obj) && !STR_SHARED_P(obj) && (long)rb_str_capacity(obj) != RSTRING_LEN(obj)) RSTRING_LEN 165 ext/openssl/ossl.c if (RSTRING_LEN(pass) < OSSL_MIN_PWD_LEN) RSTRING_LEN 169 ext/openssl/ossl.c if (RSTRING_LEN(pass) > PEM_BUFSIZE) RSTRING_LEN 355 ext/openssl/ossl.c if (RSTRING_LEN(str)) rb_str_cat2(str, ": "); RSTRING_LEN 116 ext/openssl/ossl.h long len = RSTRING_LEN(str);\ RSTRING_LEN 801 ext/openssl/ossl_asn1.c memcpy(p, RSTRING_PTR(value), RSTRING_LEN(value)); RSTRING_LEN 802 ext/openssl/ossl_asn1.c p += RSTRING_LEN(value); RSTRING_LEN 1052 ext/openssl/ossl_asn1.c len = RSTRING_LEN(tmp); RSTRING_LEN 1082 ext/openssl/ossl_asn1.c len = RSTRING_LEN(tmp); RSTRING_LEN 1113 ext/openssl/ossl_asn1.c len = RSTRING_LEN(tmp); RSTRING_LEN 1318 ext/openssl/ossl_asn1.c memcpy(p, RSTRING_PTR(value), RSTRING_LEN(value)); RSTRING_LEN 1319 ext/openssl/ossl_asn1.c p += RSTRING_LEN(value); RSTRING_LEN 222 ext/openssl/ossl_cipher.c if (EVP_MAX_IV_LENGTH > RSTRING_LEN(init_v)) { RSTRING_LEN 224 ext/openssl/ossl_cipher.c memcpy(iv, RSTRING_PTR(init_v), RSTRING_LEN(init_v)); RSTRING_LEN 312 ext/openssl/ossl_cipher.c if(RSTRING_LEN(vsalt) != PKCS5_SALT_LEN) RSTRING_LEN 381 ext/openssl/ossl_cipher.c if ((in_len = RSTRING_LEN(data)) == 0) RSTRING_LEN 399 ext/openssl/ossl_cipher.c assert(out_len < RSTRING_LEN(str)); RSTRING_LEN 430 ext/openssl/ossl_cipher.c assert(out_len <= RSTRING_LEN(str)); RSTRING_LEN 474 ext/openssl/ossl_cipher.c if (RSTRING_LEN(key) != key_len) RSTRING_LEN 508 ext/openssl/ossl_cipher.c if (RSTRING_LEN(iv) != iv_len) RSTRING_LEN 546 ext/openssl/ossl_cipher.c in_len = RSTRING_LEN(data); RSTRING_LEN 206 ext/openssl/ossl_digest.c EVP_DigestUpdate(ctx, RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 159 ext/openssl/ossl_hmac.c HMAC_Update(ctx, (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 301 ext/openssl/ossl_hmac.c (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len); RSTRING_LEN 335 ext/openssl/ossl_hmac.c (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len); RSTRING_LEN 92 ext/openssl/ossl_ns_spki.c if (!(spki = d2i_NETSCAPE_SPKI(NULL, &p, RSTRING_LEN(buffer)))) { RSTRING_LEN 188 ext/openssl/ossl_ocsp.c if (!d2i_OCSP_REQUEST(&req, &p, RSTRING_LEN(arg))) RSTRING_LEN 480 ext/openssl/ossl_ocsp.c if (!d2i_OCSP_RESPONSE(&res, &p, RSTRING_LEN(arg))) RSTRING_LEN 613 ext/openssl/ossl_ocsp.c if (!d2i_OCSP_BASICRESP(&res, &p, RSTRING_LEN(arg))) RSTRING_LEN 959 ext/openssl/ossl_ocsp.c if (!d2i_OCSP_CERTID(&id, &p, RSTRING_LEN(arg))) RSTRING_LEN 285 ext/openssl/ossl_pkey.c EVP_SignUpdate(ctx, RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 290 ext/openssl/ossl_pkey.c assert((long)buf_len <= RSTRING_LEN(str)); RSTRING_LEN 334 ext/openssl/ossl_pkey.c EVP_VerifyUpdate(ctx, RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 747 ext/openssl/ossl_pkey_ec.c switch (ECDSA_verify(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LENINT(data), (unsigned char *) RSTRING_PTR(sig), (int)RSTRING_LEN(sig), ec)) { RSTRING_LEN 1178 ext/openssl/ossl_pkey_ec.c if (EC_GROUP_set_seed(group, (unsigned char *)RSTRING_PTR(seed), RSTRING_LEN(seed)) != (size_t)RSTRING_LEN(seed)) RSTRING_LEN 613 ext/openssl/ossl_ssl.c len = RSTRING_LEN(selected); RSTRING_LEN 120 ext/openssl/ossl_x509attr.c x = d2i_X509_ATTRIBUTE(&attr, &p, RSTRING_LEN(oid)); RSTRING_LEN 313 ext/openssl/ossl_x509ext.c x = d2i_X509_EXTENSION(&ext, &p, RSTRING_LEN(oid)); RSTRING_LEN 173 ext/openssl/ossl_x509name.c x = d2i_X509_NAME(&name, &p, RSTRING_LEN(str)); RSTRING_LEN 40 ext/pathname/pathname.c if (memchr(RSTRING_PTR(str), '\0', RSTRING_LEN(str))) RSTRING_LEN 136 ext/pathname/pathname.c e1 = p1 + RSTRING_LEN(s1); RSTRING_LEN 137 ext/pathname/pathname.c e2 = p2 + RSTRING_LEN(s2); RSTRING_LEN 229 ext/pathname/pathname.c extlen = RSTRING_LEN(str); RSTRING_LEN 232 ext/pathname/pathname.c ext = p + RSTRING_LEN(str); RSTRING_LEN 288 ext/psych/psych_emitter.c (int)RSTRING_LEN(value), RSTRING_LEN 36 ext/psych/psych_parser.c *read = (size_t)RSTRING_LEN(string); RSTRING_LEN 292 ext/psych/psych_parser.c (size_t)RSTRING_LEN(yaml) RSTRING_LEN 266 ext/readline/readline.c len = RSTRING_LEN(prompt); RSTRING_LEN 969 ext/readline/readline.c result[i + 1] = (char*)malloc(RSTRING_LEN(temp) + 1); RSTRING_LEN 1179 ext/readline/readline.c if (RSTRING_LEN(str) == 0) { RSTRING_LEN 1235 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 1238 ext/readline/readline.c REALLOC_N(basic_word_break_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 1241 ext/readline/readline.c RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1242 ext/readline/readline.c basic_word_break_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 1290 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 1293 ext/readline/readline.c REALLOC_N(completer_word_break_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 1296 ext/readline/readline.c RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1297 ext/readline/readline.c completer_word_break_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 1405 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 1408 ext/readline/readline.c REALLOC_N(basic_quote_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 1411 ext/readline/readline.c RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1412 ext/readline/readline.c basic_quote_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 1461 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 1464 ext/readline/readline.c REALLOC_N(completer_quote_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 1466 ext/readline/readline.c strncpy(completer_quote_characters, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1467 ext/readline/readline.c completer_quote_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 1515 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 1518 ext/readline/readline.c REALLOC_N(filename_quote_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 1520 ext/readline/readline.c strncpy(filename_quote_characters, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1521 ext/readline/readline.c filename_quote_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 11348 ext/ripper/ripper.c len = RSTRING_LEN(s); RSTRING_LEN 11557 ext/ripper/ripper.c lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 12370 ext/ripper/ripper.c lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 12568 ext/ripper/ripper.c len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 5599 ext/ripper/ripper.y len = RSTRING_LEN(s); RSTRING_LEN 5808 ext/ripper/ripper.y lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 6621 ext/ripper/ripper.y lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 6819 ext/ripper/ripper.y len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 337 ext/sdbm/init.c if (val.dsize == RSTRING_LEN(valstr) && RSTRING_LEN 313 ext/socket/ancdata.c RSTRING_LEN(data) == sizeof(struct timeval)) { RSTRING_LEN 322 ext/socket/ancdata.c RSTRING_LEN(data) == sizeof(struct timespec)) { RSTRING_LEN 335 ext/socket/ancdata.c RSTRING_LEN(data) == sizeof(struct bintime)) { RSTRING_LEN 393 ext/socket/ancdata.c if (RSTRING_LEN(data) != sizeof(int)) RSTRING_LEN 394 ext/socket/ancdata.c rb_raise(rb_eTypeError, "size differ. expected as sizeof(int)=%d but %ld", (int)sizeof(int), (long)RSTRING_LEN(data)); RSTRING_LEN 440 ext/socket/ancdata.c if (RSTRING_LEN(v_addr) != sizeof(sa)) RSTRING_LEN 450 ext/socket/ancdata.c if (RSTRING_LEN(v_spec_dst) != sizeof(sa)) RSTRING_LEN 497 ext/socket/ancdata.c RSTRING_LEN(data) != sizeof(struct in_pktinfo)) { RSTRING_LEN 546 ext/socket/ancdata.c if (RSTRING_LEN(v_addr) != sizeof(sa)) RSTRING_LEN 573 ext/socket/ancdata.c RSTRING_LEN(data) != sizeof(struct in6_pktinfo)) { RSTRING_LEN 675 ext/socket/ancdata.c 0 < RSTRING_LEN(data) && (RSTRING_LEN(data) % sizeof(int) == 0)) { RSTRING_LEN 677 ext/socket/ancdata.c for (off = 0; off < RSTRING_LEN(data); off += sizeof(int)) { RSTRING_LEN 695 ext/socket/ancdata.c RSTRING_LEN(data) == sizeof(struct ucred)) { RSTRING_LEN 728 ext/socket/ancdata.c if (RSTRING_LEN(data) == sizeof(struct cmsgcred)) { RSTRING_LEN 748 ext/socket/ancdata.c if ((size_t)RSTRING_LEN(data) >= SOCKCREDSIZE(0)) { RSTRING_LEN 751 ext/socket/ancdata.c if ((size_t)RSTRING_LEN(data) == SOCKCREDSIZE(cred0.sc_ngroups)) { RSTRING_LEN 780 ext/socket/ancdata.c RSTRING_LEN(data) == sizeof(struct in_addr)) { RSTRING_LEN 801 ext/socket/ancdata.c RSTRING_LEN(data) == sizeof(struct in_pktinfo)) { RSTRING_LEN 830 ext/socket/ancdata.c RSTRING_LEN(data) == sizeof(struct in6_pktinfo)) { RSTRING_LEN 857 ext/socket/ancdata.c if (RSTRING_LEN(data) == sizeof(struct timeval)) { RSTRING_LEN 879 ext/socket/ancdata.c if (RSTRING_LEN(data) == sizeof(struct timespec)) { RSTRING_LEN 899 ext/socket/ancdata.c if (RSTRING_LEN(data) == sizeof(struct bintime)) { RSTRING_LEN 1194 ext/socket/ancdata.c oldlen = RSTRING_LEN(controls_str); RSTRING_LEN 1195 ext/socket/ancdata.c cspace = CMSG_SPACE(RSTRING_LEN(cdata)); RSTRING_LEN 1202 ext/socket/ancdata.c cmh.cmsg_len = (socklen_t)CMSG_LEN(RSTRING_LEN(cdata)); RSTRING_LEN 1204 ext/socket/ancdata.c MEMCPY(cmsg+((char*)CMSG_DATA(&cmh)-(char*)&cmh), RSTRING_PTR(cdata), char, RSTRING_LEN(cdata)); RSTRING_LEN 1234 ext/socket/ancdata.c rb_str_set_len(controls_str, RSTRING_LEN(controls_str)-last_pad); RSTRING_LEN 1263 ext/socket/ancdata.c iov.iov_len = RSTRING_LEN(data); RSTRING_LEN 33 ext/socket/constants.c if (str_to_int(ptr, RSTRING_LEN(arg), &ret) == -1) RSTRING_LEN 86 ext/socket/init.c return (VALUE)sendto(arg->fd, RSTRING_PTR(mesg), RSTRING_LEN(mesg), RSTRING_LEN 95 ext/socket/init.c return (VALUE)send(arg->fd, RSTRING_PTR(mesg), RSTRING_LEN(mesg), RSTRING_LEN 112 ext/socket/init.c ret = recvfrom(arg->fd, RSTRING_PTR(arg->str), RSTRING_LEN(arg->str), RSTRING_LEN 127 ext/socket/init.c len = RSTRING_LEN(str); RSTRING_LEN 179 ext/socket/init.c if (slen != RSTRING_LEN(str)) { RSTRING_LEN 260 ext/socket/init.c if (slen != RSTRING_LEN(str)) { RSTRING_LEN 222 ext/socket/option.c check_size(RSTRING_LEN(data), sizeof(char)); RSTRING_LEN 263 ext/socket/option.c check_size(RSTRING_LEN(data), sizeof(int)); RSTRING_LEN 308 ext/socket/option.c len = RSTRING_LEN(data); RSTRING_LEN 365 ext/socket/option.c check_size(RSTRING_LEN(data), sizeof(struct linger)); RSTRING_LEN 485 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(int)) { RSTRING_LEN 500 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(unsigned char)) { RSTRING_LEN 513 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(int)) { RSTRING_LEN 530 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(int)) { RSTRING_LEN 546 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct linger)) { RSTRING_LEN 567 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(int)) { RSTRING_LEN 587 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct timeval)) { RSTRING_LEN 691 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct ip_mreq)) { RSTRING_LEN 715 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct ip_mreqn)) { RSTRING_LEN 741 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct ip_mreq)) RSTRING_LEN 744 ext/socket/option.c else if (RSTRING_LEN(data) == sizeof(struct ip_mreqn)) RSTRING_LEN 756 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct in_addr)) { RSTRING_LEN 766 ext/socket/option.c else if (RSTRING_LEN(data) == sizeof(struct ip_mreqn)) { RSTRING_LEN 779 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(int)) { RSTRING_LEN 797 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct ipv6_mreq)) { RSTRING_LEN 966 ext/socket/option.c size_t actual_size = RSTRING_LEN(data); RSTRING_LEN 1151 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(RUBY_SOCK_PEERCRED)) { RSTRING_LEN 1169 ext/socket/option.c if (RSTRING_LEN(data) == sizeof(struct xucred)) { RSTRING_LEN 625 ext/socket/raddrinfo.c if (RSTRING_LEN(path) == 0) { RSTRING_LEN 631 ext/socket/raddrinfo.c if (SOCKLEN_MAX - offsetof(struct sockaddr_un, sun_path) < (size_t)RSTRING_LEN(path)) RSTRING_LEN 978 ext/socket/raddrinfo.c if (sizeof(un.sun_path) < (size_t)RSTRING_LEN(path)) RSTRING_LEN 981 ext/socket/raddrinfo.c (size_t)RSTRING_LEN(path), sizeof(un.sun_path)); RSTRING_LEN 984 ext/socket/raddrinfo.c memcpy((void*)&un.sun_path, RSTRING_PTR(path), RSTRING_LEN(path)); RSTRING_LEN 1063 ext/socket/raddrinfo.c if (rsock_family_to_int(RSTRING_PTR(afamily), RSTRING_LEN(afamily), &af) == -1) RSTRING_LEN 1619 ext/socket/raddrinfo.c if (rsock_family_to_int(RSTRING_PTR(v), RSTRING_LEN(v), &afamily) == -1) RSTRING_LEN 1624 ext/socket/raddrinfo.c if (rsock_family_to_int(RSTRING_PTR(v), RSTRING_LEN(v), &pfamily) == -1) RSTRING_LEN 1632 ext/socket/raddrinfo.c if (rsock_socktype_to_int(RSTRING_PTR(v), RSTRING_LEN(v), &socktype) == -1) RSTRING_LEN 1642 ext/socket/raddrinfo.c if (rsock_ipproto_to_int(RSTRING_PTR(v), RSTRING_LEN(v), &protocol) == -1) RSTRING_LEN 1675 ext/socket/raddrinfo.c if (sizeof(uaddr.sun_path) < (size_t)RSTRING_LEN(v)) RSTRING_LEN 1678 ext/socket/raddrinfo.c (size_t)RSTRING_LEN(v), sizeof(uaddr.sun_path)); RSTRING_LEN 1679 ext/socket/raddrinfo.c memcpy(uaddr.sun_path, RSTRING_PTR(v), RSTRING_LEN(v)); RSTRING_LEN 101 ext/socket/socket.c (socklen_t)RSTRING_LEN(addr)); /* overflow should be checked already */ RSTRING_LEN 1023 ext/socket/socket.c else if (RSTRING_LEN(addr) == 16) { RSTRING_LEN 1244 ext/socket/socket.c if (sizeof(ss) < (size_t)RSTRING_LEN(sa)) { RSTRING_LEN 1247 ext/socket/socket.c memcpy(&ss, RSTRING_PTR(sa), RSTRING_LEN(sa)); RSTRING_LEN 1248 ext/socket/socket.c if (!VALIDATE_SOCKLEN(&ss.addr, RSTRING_LEN(sa))) { RSTRING_LEN 1404 ext/socket/socket.c if (RSTRING_LEN(addr) < RSTRING_LEN 1445 ext/socket/socket.c if (sizeof(sockaddr.sun_path) < (size_t)RSTRING_LEN(path)) { RSTRING_LEN 1447 ext/socket/socket.c (size_t)RSTRING_LEN(path), sizeof(sockaddr.sun_path)); RSTRING_LEN 1449 ext/socket/socket.c memcpy(sockaddr.sun_path, RSTRING_PTR(path), RSTRING_LEN(path)); RSTRING_LEN 1475 ext/socket/socket.c if (RSTRING_LEN(addr) < RSTRING_LEN 1483 ext/socket/socket.c if (sizeof(struct sockaddr_un) < (size_t)RSTRING_LEN(addr)) { RSTRING_LEN 1485 ext/socket/socket.c RSTRING_LEN(addr), (int)sizeof(struct sockaddr_un)); RSTRING_LEN 39 ext/socket/unixsocket.c if (sizeof(sockaddr.sun_path) < (size_t)RSTRING_LEN(path)) { RSTRING_LEN 41 ext/socket/unixsocket.c RSTRING_LEN(path), (int)sizeof(sockaddr.sun_path)); RSTRING_LEN 43 ext/socket/unixsocket.c memcpy(sockaddr.sun_path, RSTRING_PTR(path), RSTRING_LEN(path)); RSTRING_LEN 111 ext/stringio/stringio.c long rlen = RSTRING_LEN(str) - pos; RSTRING_LEN 463 ext/stringio/stringio.c if (ptr->pos < RSTRING_LEN(ptr->string)) return Qfalse; RSTRING_LEN 627 ext/stringio/stringio.c offset += RSTRING_LEN(ptr->string); RSTRING_LEN 670 ext/stringio/stringio.c while (ptr->pos < RSTRING_LEN(ptr->string)) { RSTRING_LEN 705 ext/stringio/stringio.c if (pos >= RSTRING_LEN(str)) { RSTRING_LEN 725 ext/stringio/stringio.c if (ptr->pos >= RSTRING_LEN(ptr->string)) { RSTRING_LEN 738 ext/stringio/stringio.c olen = RSTRING_LEN(ptr->string); RSTRING_LEN 781 ext/stringio/stringio.c strio_unget_bytes(ptr, RSTRING_PTR(c), RSTRING_LEN(c)); RSTRING_LEN 809 ext/stringio/stringio.c cl = RSTRING_LEN(c); RSTRING_LEN 824 ext/stringio/stringio.c len = RSTRING_LEN(str); RSTRING_LEN 928 ext/stringio/stringio.c if (ptr->pos >= RSTRING_LEN(ptr->string)) { RSTRING_LEN 1018 ext/stringio/stringio.c if (ptr->pos >= (n = RSTRING_LEN(ptr->string))) { RSTRING_LEN 1022 ext/stringio/stringio.c e = s + RSTRING_LEN(ptr->string); RSTRING_LEN 1030 ext/stringio/stringio.c else if ((n = RSTRING_LEN(str)) == 0) { RSTRING_LEN 1207 ext/stringio/stringio.c len = RSTRING_LEN(str); RSTRING_LEN 1210 ext/stringio/stringio.c olen = RSTRING_LEN(ptr->string); RSTRING_LEN 1319 ext/stringio/stringio.c if (len > 0 && ptr->pos >= RSTRING_LEN(ptr->string)) { RSTRING_LEN 1328 ext/stringio/stringio.c len = RSTRING_LEN(ptr->string); RSTRING_LEN 1348 ext/stringio/stringio.c long rest = RSTRING_LEN(ptr->string) - ptr->pos; RSTRING_LEN 1357 ext/stringio/stringio.c ptr->pos += RSTRING_LEN(str); RSTRING_LEN 1440 ext/stringio/stringio.c return ULONG2NUM(RSTRING_LEN(string)); RSTRING_LEN 1455 ext/stringio/stringio.c long plen = RSTRING_LEN(string); RSTRING_LEN 51 ext/strscan/strscan.c #define S_LEN(s) (RSTRING_LEN((s)->str)) RSTRING_LEN 56 ext/strscan/strscan.c #define EOS_P(s) ((s)->curr >= RSTRING_LEN(p->str)) RSTRING_LEN 39 ext/tk/tcltklib.c #define RSTRING_LENINT(s) ((int)RSTRING_LEN(s)) RSTRING_LEN 3146 ext/tk/tcltklib.c memcpy(buf, RSTRING_PTR(msg), RSTRING_LEN(msg)); RSTRING_LEN 3147 ext/tk/tcltklib.c buf[RSTRING_LEN(msg)] = 0; RSTRING_LEN 6908 ext/tk/tcltklib.c return Tcl_NewStringObj((char*)s, RSTRING_LEN(str)); RSTRING_LEN 6926 ext/tk/tcltklib.c } else if (memchr(s, 0, RSTRING_LEN(str))) { RSTRING_LEN 7627 ext/tk/tcltklib.c memcpy(eval_str, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 7628 ext/tk/tcltklib.c eval_str[RSTRING_LEN(str)] = 0; RSTRING_LEN 7972 ext/tk/tcltklib.c if (!RSTRING_LEN(enc)) { RSTRING_LEN 8026 ext/tk/tcltklib.c if (!RSTRING_LEN(str)) { RSTRING_LEN 8030 ext/tk/tcltklib.c buf = ALLOC_N(char, RSTRING_LEN(str)+1); RSTRING_LEN 8032 ext/tk/tcltklib.c memcpy(buf, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 8033 ext/tk/tcltklib.c buf[RSTRING_LEN(str)] = 0; RSTRING_LEN 8163 ext/tk/tcltklib.c if (!RSTRING_LEN(enc)) { RSTRING_LEN 8216 ext/tk/tcltklib.c if (RSTRING_LEN(str) == 0) { RSTRING_LEN 8221 ext/tk/tcltklib.c buf = ALLOC_N(char, RSTRING_LEN(str)+1); RSTRING_LEN 8223 ext/tk/tcltklib.c memcpy(buf, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 8224 ext/tk/tcltklib.c buf[RSTRING_LEN(str)] = 0; RSTRING_LEN 8310 ext/tk/tcltklib.c if (!RSTRING_LEN(str)) { RSTRING_LEN 8322 ext/tk/tcltklib.c memcpy(src_buf, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 8323 ext/tk/tcltklib.c src_buf[RSTRING_LEN(str)] = 0; RSTRING_LEN 8332 ext/tk/tcltklib.c while(RSTRING_LEN(str) > ptr - src_buf) { RSTRING_LEN 1130 ext/tk/tkutil/tkutil.c len = RSTRING_LEN(value); RSTRING_LEN 1171 ext/tk/tkutil/tkutil.c if (RSTRING_LEN(value) == 0) return Qnil; RSTRING_LEN 1372 ext/tk/tkutil/tkutil.c const long olen = RSTRING_LEN(str); RSTRING_LEN 1511 ext/tk/tkutil/tkutil.c keylen = RSTRING_LEN(keyval) - 1; RSTRING_LEN 1639 ext/tk/tkutil/tkutil.c subst_inf->keylen[chr] = RSTRING_LEN(name); RSTRING_LEN 1641 ext/tk/tkutil/tkutil.c RSTRING_LEN(name)); RSTRING_LEN 1691 ext/tk/tkutil/tkutil.c long keylen = RSTRING_LEN(arg_key); RSTRING_LEN 867 ext/win32ole/win32ole.c if (RSTRING_LEN(vstr) == 0) { RSTRING_LEN 3303 ext/win32ole/win32ole.c n = RSTRING_LEN(mid); RSTRING_LEN 414 ext/win32ole/win32ole_record.c len = RSTRING_LEN(name); RSTRING_LEN 53 ext/win32ole/win32ole_variant.c long len = RSTRING_LEN(val); RSTRING_LEN 410 ext/zlib/zlib.c sum = checksum_long(func, sum, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 651 ext/zlib/zlib.c if (RSTRING_LEN(z->buf) - z->buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) { RSTRING_LEN 703 ext/zlib/zlib.c if (RSTRING_LEN(z->buf) - z->buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) { RSTRING_LEN 743 ext/zlib/zlib.c if (RSTRING_LEN(z->buf) < z->buf_filled + len) { RSTRING_LEN 761 ext/zlib/zlib.c zstream_append_buffer((z),(Bytef*)RSTRING_PTR(v),RSTRING_LEN(v)) RSTRING_LEN 814 ext/zlib/zlib.c buflen = RSTRING_LEN(z->buf) - z->buf_filled; RSTRING_LEN 826 ext/zlib/zlib.c if (NIL_P(z->buf) || RSTRING_LEN(z->buf) - z->buf_filled == 0) { RSTRING_LEN 843 ext/zlib/zlib.c if (NIL_P(z->buf) || RSTRING_LEN(z->buf) - z->buf_filled == 0) { RSTRING_LEN 873 ext/zlib/zlib.c zstream_append_input((z), (Bytef*)RSTRING_PTR(v), RSTRING_LEN(v)) RSTRING_LEN 878 ext/zlib/zlib.c if (NIL_P(z->input) || RSTRING_LEN(z->input) <= len) { RSTRING_LEN 883 ext/zlib/zlib.c RSTRING_LEN(z->input) - len); RSTRING_LEN 884 ext/zlib/zlib.c rb_str_resize(z->input, RSTRING_LEN(z->input) - len); RSTRING_LEN 1045 ext/zlib/zlib.c z->stream.avail_in = MAX_UINT(RSTRING_LEN(z->input)); RSTRING_LEN 1102 ext/zlib/zlib.c z->stream.avail_in = MAX_UINT(RSTRING_LEN(z->input)); RSTRING_LEN 1106 ext/zlib/zlib.c RSTRING_LEN(z->input) - z->stream.avail_in); RSTRING_LEN 1379 ext/zlib/zlib.c return INT2FIX(NIL_P(z->input) ? 0 : (int)(RSTRING_LEN(z->input))); RSTRING_LEN 1594 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), Z_FINISH); RSTRING_LEN 1655 ext/zlib/zlib.c if (flush != Z_NO_FLUSH || RSTRING_LEN(src) > 0) { /* prevent BUF_ERROR */ RSTRING_LEN 1656 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), flush); RSTRING_LEN 1908 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), Z_SYNC_FLUSH); RSTRING_LEN 1967 ext/zlib/zlib.c if (RSTRING_LEN(src) > 0 || z->stream.avail_in > 0) { /* prevent Z_BUF_ERROR */ RSTRING_LEN 1968 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), Z_SYNC_FLUSH); RSTRING_LEN 2104 ext/zlib/zlib.c return zstream_sync(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src)); RSTRING_LEN 2407 ext/zlib/zlib.c while (NIL_P(gz->z.input) || RSTRING_LEN(gz->z.input) < size) { RSTRING_LEN 2423 ext/zlib/zlib.c RSTRING_LEN(gz->z.input) - offset); RSTRING_LEN 2429 ext/zlib/zlib.c offset = RSTRING_LEN(gz->z.input); RSTRING_LEN 2486 ext/zlib/zlib.c rb_str_resize(str, RSTRING_LEN(str)-1); RSTRING_LEN 2625 ext/zlib/zlib.c if (gz->z.input != Qnil && RSTRING_LEN(gz->z.input) > 0) { RSTRING_LEN 2683 ext/zlib/zlib.c if (RSTRING_LEN(str) > 0) { /* prevent Z_BUF_ERROR */ RSTRING_LEN 2684 ext/zlib/zlib.c zstream_run(&gz->z, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str), RSTRING_LEN 2696 ext/zlib/zlib.c if (RSTRING_LEN(str) <= gz->ungetc) { RSTRING_LEN 2697 ext/zlib/zlib.c gz->ungetc -= RSTRING_LEN(str); RSTRING_LEN 2701 ext/zlib/zlib.c RSTRING_LEN(str) - gz->ungetc); RSTRING_LEN 2791 ext/zlib/zlib.c rb_str_resize(outbuf, RSTRING_LEN(dst)); RSTRING_LEN 2792 ext/zlib/zlib.c memcpy(RSTRING_PTR(outbuf), RSTRING_PTR(dst), RSTRING_LEN(dst)); RSTRING_LEN 2936 ext/zlib/zlib.c n += RSTRING_LEN(gz->z.input); RSTRING_LEN 3269 ext/zlib/zlib.c p = memchr(RSTRING_PTR(s), '\0', RSTRING_LEN(s)); RSTRING_LEN 3293 ext/zlib/zlib.c p = memchr(RSTRING_PTR(s), '\0', RSTRING_LEN(s)); RSTRING_LEN 3596 ext/zlib/zlib.c gzfile_write(gz, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 3598 ext/zlib/zlib.c return INT2FIX(RSTRING_LEN(str)); RSTRING_LEN 3970 ext/zlib/zlib.c gzfile_ungets(gz, (const Bytef*)RSTRING_PTR(s), RSTRING_LEN(s)); RSTRING_LEN 4022 ext/zlib/zlib.c if (RSTRING_PTR(rs) != rsptr && RSTRING_LEN(rs) != rslen) RSTRING_LEN 4089 ext/zlib/zlib.c if (RSTRING_LEN(dst) == 0) return Qnil; RSTRING_LEN 4110 ext/zlib/zlib.c if (RSTRING_LEN(rs) == 0) { RSTRING_LEN 4117 ext/zlib/zlib.c rslen = RSTRING_LEN(rs); RSTRING_LEN 249 file.c long oldlen = RSTRING_LEN(str); RSTRING_LEN 2982 file.c if (RSTRING_LEN(path) < 2) return 0; RSTRING_LEN 3130 file.c buflen = RSTRING_LEN(result),\ RSTRING_LEN 3267 file.c fend = s + RSTRING_LEN(fname); RSTRING_LEN 3614 file.c rb_str_resize(str, RSTRING_LEN(str)); RSTRING_LEN 3724 file.c if (*prefixlenp < RSTRING_LEN(*resolvedp)) { RSTRING_LEN 3727 file.c const char *lastsep = strrdirsep(resolved_names, resolved_str + RSTRING_LEN(*resolvedp), enc); RSTRING_LEN 3735 file.c if (*prefixlenp < RSTRING_LEN(testpath)) RSTRING_LEN 3738 file.c if (*prefixlenp > 1 && *prefixlenp == RSTRING_LEN(testpath)) { RSTRING_LEN 3784 file.c link_names = skipprefixroot(link_prefix, link_prefix + RSTRING_LEN(link), rb_enc_get(link)); RSTRING_LEN 4079 file.c if ((n = RSTRING_LEN(fname)) == 0 || !*(name = RSTRING_PTR(fname))) RSTRING_LEN 4090 file.c if (!(f = rmext(p, f, n, fp, RSTRING_LEN(fext), enc))) { RSTRING_LEN 4095 file.c if (f == RSTRING_LEN(fname)) return rb_str_new_shared(fname); RSTRING_LEN 4131 file.c end = name + RSTRING_LEN(fname); RSTRING_LEN 4262 file.c len = RSTRING_LEN(fname); RSTRING_LEN 4334 file.c len += RSTRING_LEN(tmp); RSTRING_LEN 4342 file.c len += RSTRING_LEN(sep) * (RARRAY_LEN(ary) - 1); RSTRING_LEN 5581 file.c e0 = p0 + RSTRING_LEN(path); RSTRING_LEN 5741 file.c fnlen = RSTRING_LEN(fname); RSTRING_LEN 5758 file.c fnlen = RSTRING_LEN(fname); RSTRING_LEN 5767 file.c if (RSTRING_LEN(str) == 0) continue; RSTRING_LEN 5824 file.c if (RSTRING_LEN(str) > 0) { RSTRING_LEN 1826 hash.c if (RSTRING_LEN(str) > 1) { RSTRING_LEN 2971 hash.c if (memchr(var, '\0', RSTRING_LEN(str))) { RSTRING_LEN 3902 hash.c if (RSTRING_LEN(obj) == len && strncmp(s, RSTRING_PTR(obj), len) == 0) { RSTRING_LEN 3933 hash.c if (RSTRING_LEN(obj) == len && strncmp(s, RSTRING_PTR(obj), len) == 0) { RSTRING_LEN 3964 hash.c if (RSTRING_LEN(value) == len && strncmp(s, RSTRING_PTR(value), len) == 0) { RSTRING_LEN 975 include/ruby/ruby.h #define RSTRING_LENINT(str) rb_long2int(RSTRING_LEN(str)) RSTRING_LEN 1044 include/ruby/ruby.h #define RREGEXP_SRC_LEN(r) RSTRING_LEN(RREGEXP(r)->src) RSTRING_LEN 1565 include/ruby/ruby.h if (RB_TYPE_P(x, RUBY_T_STRING) && (RSTRING_LEN(x)>=1)) RSTRING_LEN 1292 internal.h #define ARGVSTR2ARGC(argv_str) (RSTRING_LEN(argv_str) / sizeof(char *) - 2) RSTRING_LEN 744 io.c long len = RSTRING_LEN(str); RSTRING_LEN 1437 io.c return io_binwrite(str, RSTRING_PTR(str), RSTRING_LEN(str), RSTRING_LEN 1466 io.c if (RSTRING_LEN(str) == 0) return INT2FIX(0); RSTRING_LEN 2360 io.c long clen = RSTRING_LEN(s); RSTRING_LEN 2373 io.c if (RSTRING_LEN(str) != n) { RSTRING_LEN 2699 io.c n = write(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 2835 io.c if (RSTRING_PTR(rs) != rsptr && RSTRING_LEN(rs) != rslen) RSTRING_LEN 2879 io.c return (unsigned char)RSTRING_PTR(str)[RSTRING_LEN(str)-1]; RSTRING_LEN 2900 io.c last = RSTRING_LEN(str); RSTRING_LEN 2913 io.c return (unsigned char)RSTRING_PTR(str)[RSTRING_LEN(str)-1]; RSTRING_LEN 3044 io.c (RSTRING_LEN(rs) > 0 && !rb_enc_asciicompat(enc_io)))) { RSTRING_LEN 3070 io.c if (RSTRING_LEN(str) == 0) return Qnil; RSTRING_LEN 3091 io.c rslen = RSTRING_LEN(rs); RSTRING_LEN 3103 io.c rslen = RSTRING_LEN(rs); RSTRING_LEN 3117 io.c if (RSTRING_LEN(str) < rslen) continue; RSTRING_LEN 3558 io.c r = rb_enc_precise_mbclen(RSTRING_PTR(str), RSTRING_PTR(str)+RSTRING_LEN(str), enc); RSTRING_LEN 3932 io.c len = RSTRING_LEN(c); RSTRING_LEN 4429 io.c RSTRING_LEN(mesg) != mesg_len || RSTRING_LEN 4667 io.c n = rb_write_internal(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 6126 io.c if (RSTRING_LEN(prog) == 1 && RSTRING_PTR(prog)[0] == '-') { RSTRING_LEN 6441 io.c long l = RSTRING_LEN(filename_or_command); RSTRING_LEN 7058 io.c long len = RSTRING_LEN(str); RSTRING_LEN 7132 io.c if (RSTRING_LEN(line) == 0 || RSTRING_LEN 7295 io.c size_t len = (size_t)RSTRING_LEN(mesg); RSTRING_LEN 7960 io.c if (RSTRING_LEN(filename) == 1 && fn[0] == '-') { RSTRING_LEN 9133 io.c slen = RSTRING_LEN(arg); RSTRING_LEN 9441 io.c if (RSTRING_LEN(tmp) == 1 && RSTRING_PTR(tmp)[0] == '-') { RSTRING_LEN 10540 io.c if (read_method == id_read && RSTRING_LEN(buf) == 0) { RSTRING_LEN 10651 io.c if (io_binwrite(str, RSTRING_PTR(str), RSTRING_LEN(str), dst_fptr, 0) < 0) RSTRING_LEN 11166 io.c long slen = RSTRING_LEN(str); RSTRING_LEN 1420 iseq.c long slen = RSTRING_LEN(str); RSTRING_LEN 1489 iseq.c if ((l = RSTRING_LEN(str)) < header_minlen) { RSTRING_LEN 1557 iseq.c width = RSTRING_LEN(str) + 11; RSTRING_LEN 1563 iseq.c if ((width -= RSTRING_LEN(str)) > 0) rb_str_catf(str, "%*s", (int)width, ""); RSTRING_LEN 230 load.c feature_end = feature_str + RSTRING_LEN(feature); RSTRING_LEN 349 load.c long n = RSTRING_LEN(p); RSTRING_LEN 445 load.c if ((n = RSTRING_LEN(v)) < len) continue; RSTRING_LEN 452 load.c f += RSTRING_LEN(p) + 1; RSTRING_LEN 258 marshal.c if (arg->dest && RSTRING_LEN(buf) >= BUFSIZ) { RSTRING_LEN 457 marshal.c w_bytes(RSTRING_PTR(sym), RSTRING_LEN(sym), arg); RSTRING_LEN 740 marshal.c w_bytes(RSTRING_PTR(v), RSTRING_LEN(v), arg); RSTRING_LEN 777 marshal.c w_bytes(RSTRING_PTR(path), RSTRING_LEN(path), arg); RSTRING_LEN 786 marshal.c w_bytes(RSTRING_PTR(path), RSTRING_LEN(path), arg); RSTRING_LEN 832 marshal.c w_bytes(RSTRING_PTR(obj), RSTRING_LEN(obj), arg); RSTRING_LEN 1136 marshal.c memcpy(arg->buf, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1138 marshal.c arg->buflen = RSTRING_LEN(str); RSTRING_LEN 1150 marshal.c if (RSTRING_LEN(arg->src) > arg->offset) { RSTRING_LEN 1218 marshal.c if (RSTRING_LEN(str) != len) too_short(); RSTRING_LEN 1247 marshal.c tmp_len = RSTRING_LEN(tmp); RSTRING_LEN 1278 marshal.c if (RSTRING_LEN(arg->src) - arg->offset >= len) { RSTRING_LEN 1673 marshal.c d = load_mantissa(d, e, RSTRING_LEN(str) - (e - ptr)); RSTRING_LEN 1717 marshal.c long len = RSTRING_LEN(str); RSTRING_LEN 260 nacl/pepper_main.c return var_interface->VarFromUtf8(module_id, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 263 nacl/pepper_main.c return var_interface->VarFromUtf8(RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 37 node.c rb_str_resize(indent, RSTRING_LEN(indent) - 4); \ RSTRING_LEN 796 numeric.c rb_str_resize(s, (len = RSTRING_LEN(s)) + decpt - digs + 2); RSTRING_LEN 812 numeric.c rb_str_resize(s, (len = RSTRING_LEN(s)) - decpt + digs); RSTRING_LEN 2094 object.c pend = path + RSTRING_LEN(name); RSTRING_LEN 2252 object.c pend = path + RSTRING_LEN(name); RSTRING_LEN 2843 object.c len = RSTRING_LEN(str); RSTRING_LEN 372 pack.c pend = p + RSTRING_LEN(fmt); RSTRING_LEN 384 pack.c if (RSTRING_PTR(fmt) + RSTRING_LEN(fmt) != pend) { RSTRING_LEN 471 pack.c plen = RSTRING_LEN(from); RSTRING_LEN 799 pack.c plen = RSTRING_LEN(res); RSTRING_LEN 806 pack.c len -= RSTRING_LEN(res); RSTRING_LEN 838 pack.c plen = RSTRING_LEN(from); RSTRING_LEN 875 pack.c if (RSTRING_LEN(from) < len) { RSTRING_LEN 877 pack.c RSTRING_LEN(from), len); RSTRING_LEN 915 pack.c sign = rb_integer_pack(from, RSTRING_PTR(buf), RSTRING_LEN(buf), 1, 1, INTEGER_PACK_BIG_ENDIAN); RSTRING_LEN 929 pack.c rb_str_buf_cat(res, RSTRING_PTR(buf), RSTRING_LEN(buf)); RSTRING_LEN 1029 pack.c unsigned char *send = s + RSTRING_LEN(from); RSTRING_LEN 1262 pack.c send = s + RSTRING_LEN(str); RSTRING_LEN 1264 pack.c pend = p + RSTRING_LEN(fmt); RSTRING_LEN 1671 pack.c if (total > RSTRING_LEN(buf)) { RSTRING_LEN 1672 pack.c len -= total - RSTRING_LEN(buf); RSTRING_LEN 1673 pack.c total = RSTRING_LEN(buf); RSTRING_LEN 1826 pack.c if (len > RSTRING_LEN(str)) RSTRING_LEN 1862 pack.c if (len < RSTRING_LEN(*p)) { RSTRING_LEN 11272 parse.c len = RSTRING_LEN(s); RSTRING_LEN 11481 parse.c lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 12294 parse.c lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 12492 parse.c len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 5599 parse.y len = RSTRING_LEN(s); RSTRING_LEN 5808 parse.y lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 6621 parse.y lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 6819 parse.y len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 2203 process.c rb_str_buf_cat(argv_buf, s, RSTRING_LEN(arg) + 1); /* include '\0' */ RSTRING_LEN 2214 process.c ep = p + RSTRING_LEN(eargp->invoke.cmd.argv_buf); RSTRING_LEN 2402 process.c ep = p + RSTRING_LEN(envp_buf); RSTRING_LEN 3916 process.c cmd = rb_str_new(start, RSTRING_LEN(buf)); RSTRING_LEN 905 random.c l = RSTRING_LEN(v); RSTRING_LEN 2314 rational.c if (!s || memchr(s, '\0', RSTRING_LEN(self))) RSTRING_LEN 2317 rational.c if (s && s[RSTRING_LEN(self)]) { RSTRING_LEN 2320 rational.c s[RSTRING_LEN(self)] = '\0'; RSTRING_LEN 2369 rational.c if (s && s[RSTRING_LEN(self)]) { RSTRING_LEN 2372 rational.c s[RSTRING_LEN(self)] = '\0'; RSTRING_LEN 649 re.c rb_str_resize(str, RSTRING_LEN(str) - n); RSTRING_LEN 694 re.c return rb_enc_reg_error_desc(RSTRING_PTR(str), RSTRING_LEN(str), RSTRING_LEN 1449 re.c (UChar* )(RSTRING_PTR(unescaped) + RSTRING_LEN(unescaped)), RSTRING_LEN 1481 re.c range = RSTRING_LEN(str) - pos; RSTRING_LEN 1484 re.c if (pos > 0 && ONIGENC_MBC_MAXLEN(enc) != 1 && pos < RSTRING_LEN(str)) { RSTRING_LEN 1488 re.c p = onigenc_get_right_adjust_char_head(enc, string, string + pos, string + RSTRING_LEN(str)); RSTRING_LEN 1491 re.c p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, string, string + pos, string + RSTRING_LEN(str)); RSTRING_LEN 1511 re.c if (pos > RSTRING_LEN(str) || pos < 0) { RSTRING_LEN 1533 re.c range += RSTRING_LEN(str); RSTRING_LEN 1537 re.c ((UChar*)(RSTRING_PTR(str)) + RSTRING_LEN(str)), RSTRING_LEN 1697 re.c str = rb_str_subseq(str, pos, RSTRING_LEN(str) - pos); RSTRING_LEN 2613 re.c end = p + RSTRING_LEN(str); RSTRING_LEN 2656 re.c end = p + RSTRING_LEN(str); RSTRING_LEN 2732 re.c re->ptr = make_regexp(RSTRING_PTR(unescaped), RSTRING_LEN(unescaped), enc, RSTRING_LEN 2766 re.c ret = rb_reg_initialize(obj, RSTRING_PTR(str), RSTRING_LEN(str), enc, RSTRING_LEN 2814 re.c if (rb_reg_initialize(re, RSTRING_PTR(s), RSTRING_LEN(s), RSTRING_LEN 2869 re.c if (reg_cache && RREGEXP_SRC_LEN(reg_cache) == RSTRING_LEN(str) RSTRING_LEN 2871 re.c && memcmp(RREGEXP_SRC_PTR(reg_cache), RSTRING_PTR(str), RSTRING_LEN(str)) == 0) RSTRING_LEN 3253 re.c end = start + RSTRING_LEN(str); RSTRING_LEN 3358 re.c send = s + RSTRING_LEN(str); RSTRING_LEN 3383 re.c tmp = rb_str_new(0, RSTRING_LEN(str)*2); RSTRING_LEN 3674 re.c e = s + RSTRING_LEN(str); RSTRING_LEN 3753 re.c rb_enc_str_buf_cat(val, RSTRING_PTR(src)+END(0), RSTRING_LEN(src)-END(0), src_enc); RSTRING_LEN 743 ruby.c argc = RSTRING_LEN(argary) / sizeof(ap); RSTRING_LEN 1872 ruby.c if (RSTRING_LEN(fname_v) == 1 && fname[0] == '-') { RSTRING_LEN 440 signal.c if (ofs) str = rb_str_subseq(str, ofs, RSTRING_LEN(str)-ofs); RSTRING_LEN 1191 signal.c if (ofs) vsig = rb_str_subseq(vsig, ofs, RSTRING_LEN(vsig)-ofs); RSTRING_LEN 503 sprintf.c end = p + RSTRING_LEN(fmt); RSTRING_LEN 733 sprintf.c len = RSTRING_LEN(str); RSTRING_LEN 882 sprintf.c valsign = rb_integer_pack(val, RSTRING_PTR(tmp), RSTRING_LEN(tmp), RSTRING_LEN 884 sprintf.c for (i = 0; i < RSTRING_LEN(tmp); i++) RSTRING_LEN 916 sprintf.c valsign = rb_integer_pack(val, RSTRING_PTR(tmp), RSTRING_LEN(tmp), RSTRING_LEN 918 sprintf.c for (i = 0; i < RSTRING_LEN(tmp); i++) RSTRING_LEN 1079 sprintf.c len = RSTRING_LEN(val) + zero; RSTRING_LEN 1094 sprintf.c len = RSTRING_LEN(val) + zero; RSTRING_LEN 232 strftime.c size_t len = RSTRING_LEN(ftime); RSTRING_LEN 323 strftime.c i = RSTRING_LEN(ftime) - len; \ RSTRING_LEN 348 strftime.c i = RSTRING_LEN(tmp); \ RSTRING_LEN 106 string.c long n = RSTRING_LEN(str);\ RSTRING_LEN 132 string.c const long tlen = RSTRING_LEN(str);\ RSTRING_LEN 178 string.c long len = RSTRING_LEN(str); RSTRING_LEN 193 string.c if (RSTRING_LEN(str) < 2) break; RSTRING_LEN 203 string.c if (RSTRING_LEN(str) < 4) break; RSTRING_LEN 579 string.c if (RSTRING_LEN(dest) == 0) { RSTRING_LEN 621 string.c cr = coderange_scan(RSTRING_PTR(str), RSTRING_LEN(str), RSTRING_LEN 644 string.c if (RSTRING_PTR(s) != p || RSTRING_LEN(s) != len){ RSTRING_LEN 893 string.c olen = RSTRING_LEN(newstr); RSTRING_LEN 1114 string.c str = str_new(klass, RSTRING_PTR(orig), RSTRING_LEN(orig)); RSTRING_LEN 1136 string.c else if (RSTRING_LEN(orig)+TERM_LEN(orig) <= RSTRING_EMBED_LEN_MAX+1) { RSTRING_LEN 1139 string.c memcpy(RSTRING_PTR(str), RSTRING_PTR(orig), RSTRING_LEN(orig)); RSTRING_LEN 1140 string.c STR_SET_EMBED_LEN(str, RSTRING_LEN(orig)); RSTRING_LEN 1146 string.c RSTRING(str)->as.heap.len = RSTRING_LEN(orig); RSTRING_LEN 1262 string.c if (RSTRING_LEN(str2) <= RSTRING_EMBED_LEN_MAX) { RSTRING_LEN 1264 string.c memcpy(RSTRING_PTR(str), RSTRING_PTR(str2), RSTRING_LEN(str2)+1); RSTRING_LEN 1265 string.c STR_SET_EMBED_LEN(str, RSTRING_LEN(str2)); RSTRING_LEN 1273 string.c RSTRING(str)->as.heap.len = RSTRING_LEN(str2); RSTRING_LEN 1314 string.c len = RSTRING_LEN(str2); RSTRING_LEN 1373 string.c RUBY_DTRACE_CREATE_HOOK(STRING, RSTRING_LEN(str)); RSTRING_LEN 1426 string.c len = RSTRING_LEN(orig); RSTRING_LEN 1645 string.c if (single_byte_optimizable(str)) return RSTRING_LEN(str); RSTRING_LEN 1694 string.c return LONG2NUM(RSTRING_LEN(str)); RSTRING_LEN 1711 string.c if (RSTRING_LEN(str) == 0) RSTRING_LEN 1784 string.c if (len && LONG_MAX/len < RSTRING_LEN(str)) { RSTRING_LEN 1788 string.c len *= RSTRING_LEN(str); RSTRING_LEN 1793 string.c n = RSTRING_LEN(str); RSTRING_LEN 1918 string.c long len = RSTRING_LEN(str); RSTRING_LEN 1922 string.c long len = RSTRING_LEN(str); RSTRING_LEN 2032 string.c long len = RSTRING_LEN(str); RSTRING_LEN 2055 string.c long len = RSTRING_LEN(str); RSTRING_LEN 2224 string.c if (RSTRING_EMBED_LEN_MAX < len && SHARABLE_SUBSTRING_P(beg, len, RSTRING_LEN(str))) { RSTRING_LEN 2247 string.c long blen = RSTRING_LEN(str); RSTRING_LEN 2269 string.c if (-beg * rb_enc_mbmaxlen(enc) < RSTRING_LEN(str) / 8) { RSTRING_LEN 2287 string.c else if (beg > 0 && beg > RSTRING_LEN(str)) { RSTRING_LEN 2364 string.c rb_str_resize(str, RSTRING_LEN(str)); RSTRING_LEN 2467 string.c slen = RSTRING_LEN(str); RSTRING_LEN 2592 string.c str_cr = RSTRING_LEN(str) ? ENC_CODERANGE(str) : ENC_CODERANGE_7BIT; RSTRING_LEN 2605 string.c if (RSTRING_LEN(str) == 0) { RSTRING_LEN 2707 string.c rb_enc_cr_str_buf_cat(str, RSTRING_PTR(str2), RSTRING_LEN(str2), RSTRING_LEN 2735 string.c rb_enc_cr_str_buf_cat(str, RSTRING_PTR(v), RSTRING_LEN(v), RSTRING_LEN 2798 string.c long pos = RSTRING_LEN(str1); RSTRING_LEN 2853 string.c return rb_memhash((const void *)RSTRING_PTR(str), RSTRING_LEN(str)) ^ e; RSTRING_LEN 2892 string.c if (RSTRING_LEN(str1) == 0) return TRUE; RSTRING_LEN 2893 string.c if (RSTRING_LEN(str2) == 0) return TRUE; RSTRING_LEN 2941 string.c const long len = RSTRING_LEN(str1); RSTRING_LEN 2944 string.c if (len != RSTRING_LEN(str2)) return Qfalse; RSTRING_LEN 3107 string.c if (RSTRING_LEN(str1) == RSTRING_LEN(str2)) return INT2FIX(0); RSTRING_LEN 3108 string.c if (RSTRING_LEN(str1) > RSTRING_LEN(str2)) return INT2FIX(1); RSTRING_LEN 3125 string.c len = (in_byte || single_byte) ? RSTRING_LEN(str) : str_strlen(str, enc); /* rb_enc_check */ RSTRING_LEN 3126 string.c slen = in_byte ? RSTRING_LEN(sub) : str_strlen(sub, enc); /* rb_enc_check */ RSTRING_LEN 3142 string.c slen = RSTRING_LEN(sub); RSTRING_LEN 3143 string.c len = RSTRING_LEN(str) - offset; RSTRING_LEN 3242 string.c slen = RSTRING_LEN(sub); RSTRING_LEN 3275 string.c slen = RSTRING_LEN(sub); RSTRING_LEN 3301 string.c len = singlebyte ? RSTRING_LEN(str) : str_strlen(str, enc); /* rb_enc_check */ RSTRING_LEN 3312 string.c if (memcmp(sbeg, RSTRING_PTR(sub), RSTRING_LEN(sub)) == 0) RSTRING_LEN 3697 string.c str = rb_str_new_with_class(orig, RSTRING_PTR(orig), RSTRING_LEN(orig)); RSTRING_LEN 3714 string.c slen = RSTRING_LEN(str); RSTRING_LEN 3882 string.c if (RSTRING_LEN(beg) == 1 && RSTRING_LEN(end) == 1 && ascii) { RSTRING_LEN 3897 string.c all_digits_p(RSTRING_PTR(beg), RSTRING_LEN(beg)) && RSTRING_LEN 3898 string.c all_digits_p(RSTRING_PTR(end), RSTRING_LEN(end))) { RSTRING_LEN 3944 string.c if (RSTRING_LEN(current) > RSTRING_LEN(end) || RSTRING_LEN(current) == 0) RSTRING_LEN 3975 string.c if (RSTRING_LEN(beg) == 1 && RSTRING_LEN(end) == 1) { RSTRING_LEN 3976 string.c if (RSTRING_LEN(val) == 0 || RSTRING_LEN(val) > 1) RSTRING_LEN 3993 string.c all_digits_p(bp, RSTRING_LEN(beg)) && RSTRING_LEN 3994 string.c all_digits_p(ep, RSTRING_LEN(end))) { RSTRING_LEN 4139 string.c long olen = RSTRING_LEN(str), nlen; RSTRING_LEN 4167 string.c long slen, vlen = RSTRING_LEN(val); RSTRING_LEN 4499 string.c rb_backref_set_string(str, pos, RSTRING_LEN(pat)); RSTRING_LEN 4566 string.c end0 = beg0 + RSTRING_LEN(pat); RSTRING_LEN 4576 string.c p = RSTRING_PTR(str); len = RSTRING_LEN(str); RSTRING_LEN 4595 string.c p = RSTRING_PTR(str); len = RSTRING_LEN(str); RSTRING_LEN 4616 string.c rp = RSTRING_PTR(repl); rlen = RSTRING_LEN(repl); RSTRING_LEN 4617 string.c len = RSTRING_LEN(str); RSTRING_LEN 4729 string.c blen = RSTRING_LEN(str) + 30; /* len + margin */ RSTRING_LEN 4732 string.c slen = RSTRING_LEN(str); RSTRING_LEN 4743 string.c end0 = beg0 + RSTRING_LEN(pat); RSTRING_LEN 4791 string.c if (RSTRING_LEN(str) <= end0) break; RSTRING_LEN 4797 string.c if (offset > RSTRING_LEN(str)) break; RSTRING_LEN 4800 string.c if (RSTRING_LEN(str) > offset) { RSTRING_LEN 4801 string.c rb_enc_str_buf_cat(dest, cp, RSTRING_LEN(str) - offset, str_enc); RSTRING_LEN 4962 string.c pos += RSTRING_LEN(str); RSTRING_LEN 4963 string.c if (pos < 0 || RSTRING_LEN(str) <= pos) RSTRING_LEN 4980 string.c long len = RSTRING_LEN(str); RSTRING_LEN 5031 string.c long n = RSTRING_LEN(str); RSTRING_LEN 5061 string.c if (RSTRING_LEN(str2) == 0) { RSTRING_LEN 5092 string.c long beg, len = RSTRING_LEN(str); RSTRING_LEN 5160 string.c if (RSTRING_LEN(str) <= 1) return rb_str_dup(str); RSTRING_LEN 5162 string.c rev = rb_str_new_with_class(str, 0, RSTRING_LEN(str)); RSTRING_LEN 5167 string.c if (RSTRING_LEN(str) > 1) { RSTRING_LEN 5195 string.c STR_SET_LEN(rev, RSTRING_LEN(str)); RSTRING_LEN 5214 string.c if (RSTRING_LEN(str) > 1) { RSTRING_LEN 5586 string.c p = RSTRING_PTR(str); pend = p + RSTRING_LEN(str); RSTRING_LEN 5627 string.c p = RSTRING_PTR(str); pend = p + RSTRING_LEN(str); RSTRING_LEN 5779 string.c if (RSTRING_LEN(source) == 0) return rb_str_dup(source); RSTRING_LEN 5840 string.c long old_length = RSTRING_LEN(source); RSTRING_LEN 6055 string.c if (RSTRING_LEN(str) == 0 || !RSTRING_PTR(str)) return Qnil; RSTRING_LEN 6228 string.c if (RSTRING_LEN(str) == 0 || !RSTRING_PTR(str)) return Qnil; RSTRING_LEN 6229 string.c if (RSTRING_LEN(repl) == 0) { RSTRING_LEN 6242 string.c trsrc.p = RSTRING_PTR(src); trsrc.pend = trsrc.p + RSTRING_LEN(src); RSTRING_LEN 6243 string.c if (RSTRING_LEN(src) > 1 && RSTRING_LEN 6250 string.c trrepl.pend = trrepl.p + RSTRING_LEN(repl); RSTRING_LEN 6303 string.c long offset, max = RSTRING_LEN(str); RSTRING_LEN 6384 string.c int clen, tlen, max = (int)(RSTRING_LEN(str) * 1.2); RSTRING_LEN 6523 string.c tr.p = RSTRING_PTR(str); tr.pend = tr.p + RSTRING_LEN(str); RSTRING_LEN 6526 string.c if (RSTRING_LEN(str) > 1 && rb_enc_ascget(tr.p, tr.pend, &l, enc) == '^') { RSTRING_LEN 6616 string.c if (RSTRING_LEN(str) == 0 || !RSTRING_PTR(str)) return Qnil; RSTRING_LEN 6727 string.c if (!s || RSTRING_LEN(str) == 0) return Qnil; RSTRING_LEN 6765 string.c if (t - RSTRING_PTR(str) != RSTRING_LEN(str)) { RSTRING_LEN 6880 string.c if (RSTRING_LEN(tstr) == 1 && rb_enc_asciicompat(enc) && RSTRING_LEN 6889 string.c if (!s || RSTRING_LEN(str) == 0) return INT2FIX(0); RSTRING_LEN 6907 string.c if (!s || RSTRING_LEN(str) == 0) return INT2FIX(0); RSTRING_LEN 7016 string.c if (RSTRING_LEN(str) == 0) RSTRING_LEN 7034 string.c if (RSTRING_LEN(spat) == 0) { RSTRING_LEN 7040 string.c if (RSTRING_LEN(spat) == 1 && RSTRING_PTR(spat)[0] == ' '){ RSTRING_LEN 7047 string.c RSTRING_LEN(spat) == l) { RSTRING_LEN 7124 string.c long slen = RSTRING_LEN(spat); RSTRING_LEN 7144 string.c long len = RSTRING_LEN(str); RSTRING_LEN 7190 string.c if (RSTRING_LEN(str) > 0 && (!NIL_P(limit) || RSTRING_LEN(str) > beg || lim < 0)) { RSTRING_LEN 7191 string.c if (RSTRING_LEN(str) == beg) RSTRING_LEN 7194 string.c tmp = rb_str_subseq(str, beg, RSTRING_LEN(str)-beg); RSTRING_LEN 7200 string.c (tmp = RARRAY_AREF(result, len-1), RSTRING_LEN(tmp) == 0)) RSTRING_LEN 7266 string.c len = RSTRING_LEN(str); RSTRING_LEN 7268 string.c rslen = RSTRING_LEN(rs); RSTRING_LEN 7288 string.c rslen = RSTRING_LEN(rs); RSTRING_LEN 7394 string.c return LONG2FIX(RSTRING_LEN(str)); RSTRING_LEN 7416 string.c ary = rb_ary_new2(RSTRING_LEN(str)); RSTRING_LEN 7421 string.c for (i=0; i<RSTRING_LEN(str); i++) { RSTRING_LEN 7489 string.c len = RSTRING_LEN(str); RSTRING_LEN 7677 string.c end = beg + RSTRING_LEN(str); RSTRING_LEN 7701 string.c if (RSTRING_LEN(str) > 0) { RSTRING_LEN 7747 string.c long len = RSTRING_LEN(str); RSTRING_LEN 7866 string.c if ((olen = RSTRING_LEN(str)) > 0 && !NIL_P(rs = chomp_rs(argc, argv))) { RSTRING_LEN 8170 string.c if (RSTRING_LEN(str) > END(0)) RSTRING_LEN 8230 string.c char *p = RSTRING_PTR(str); long len = RSTRING_LEN(str); RSTRING_LEN 8337 string.c if (RSTRING_LEN(salt) < 2) { RSTRING_LEN 8418 string.c len = RSTRING_LEN(str); RSTRING_LEN 8478 string.c flen = RSTRING_LEN(pad); RSTRING_LEN 8495 string.c size = RSTRING_LEN(str); RSTRING_LEN 8638 string.c if (pos == 0 && RSTRING_LEN(sep) == 0) goto failed; RSTRING_LEN 8646 string.c rb_str_subseq(str, pos+RSTRING_LEN(sep), RSTRING_LEN 8647 string.c RSTRING_LEN(str)-pos-RSTRING_LEN(sep))); RSTRING_LEN 8668 string.c long pos = RSTRING_LEN(str); RSTRING_LEN 8698 string.c rb_str_subseq(str, pos+RSTRING_LEN(sep), RSTRING_LEN 8699 string.c RSTRING_LEN(str)-pos-RSTRING_LEN(sep))); RSTRING_LEN 8724 string.c if (RSTRING_LEN(str) < RSTRING_LEN(tmp)) continue; RSTRING_LEN 8725 string.c if (memcmp(RSTRING_PTR(str), RSTRING_PTR(tmp), RSTRING_LEN(tmp)) == 0) RSTRING_LEN 8755 string.c if (RSTRING_LEN(str) < RSTRING_LEN(tmp)) continue; RSTRING_LEN 8757 string.c e = p + RSTRING_LEN(str); RSTRING_LEN 8758 string.c s = e - RSTRING_LEN(tmp); RSTRING_LEN 8761 string.c if (memcmp(s, RSTRING_PTR(tmp), RSTRING_LEN(tmp)) == 0) RSTRING_LEN 8867 string.c const long blen = RSTRING_LEN(str); RSTRING_LEN 8968 string.c replen = RSTRING_LEN(repl); RSTRING_LEN 9000 string.c if (NIL_P(buf)) buf = rb_str_buf_new(RSTRING_LEN(str)); RSTRING_LEN 9027 string.c rb_str_buf_cat(buf, RSTRING_PTR(repl), RSTRING_LEN(repl)); RSTRING_LEN 9048 string.c buf = rb_str_buf_new(RSTRING_LEN(str)); RSTRING_LEN 9062 string.c rb_str_buf_cat(buf, RSTRING_PTR(repl), RSTRING_LEN(repl)); RSTRING_LEN 9076 string.c replen = RSTRING_LEN(repl); RSTRING_LEN 9105 string.c if (NIL_P(buf)) buf = rb_str_buf_new(RSTRING_LEN(str)); RSTRING_LEN 9128 string.c rb_str_buf_cat(buf, RSTRING_PTR(repl), RSTRING_LEN(repl)); RSTRING_LEN 9142 string.c buf = rb_str_buf_new(RSTRING_LEN(str)); RSTRING_LEN 9155 string.c rb_str_buf_cat(buf, RSTRING_PTR(repl), RSTRING_LEN(repl)); RSTRING_LEN 9281 string.c len = RSTRING_LEN(sym); RSTRING_LEN 9302 string.c len = RSTRING_LEN(str); RSTRING_LEN 9335 string.c len = RSTRING_LEN(str); RSTRING_LEN 320 symbol.c long len = RSTRING_LEN(name); RSTRING_LEN 1062 symbol.c RSTRING_PTR(name), RSTRING_LEN(name) - 1, RSTRING_LEN 1942 time.c switch (RSTRING_LEN(tmp)) { RSTRING_LEN 2476 time.c if (!NIL_P(s) && RSTRING_LEN(s) > 0) { RSTRING_LEN 2479 time.c if (RSTRING_LEN(s) == 3 && RSTRING_LEN 4442 time.c len = RSTRING_LEN(format); RSTRING_LEN 4604 time.c if (RSTRING_LEN(str) != 8) { RSTRING_LEN 4653 time.c len = RSTRING_LEN(submicro); RSTRING_LEN 1828 transcode.c long dlen = RSTRING_LEN(dst); RSTRING_LEN 1864 transcode.c return rb_econv_substr_append(ec, src, 0, RSTRING_LEN(src), dst, flags); RSTRING_LEN 1876 transcode.c return rb_econv_substr_append(ec, src, 0, RSTRING_LEN(src), Qnil, flags); RSTRING_LEN 2315 transcode.c RSTRING_LEN(rep), rb_enc_name(rb_enc_get(rep))); RSTRING_LEN 2599 transcode.c RSTRING_LEN(replacement), RSTRING_LEN 2727 transcode.c slen = RSTRING_LEN(str); RSTRING_LEN 3745 transcode.c if (!NIL_P(input) && output_bytesize < RSTRING_LEN(input)) RSTRING_LEN 3746 transcode.c output_bytesize = RSTRING_LEN(input); RSTRING_LEN 3752 transcode.c output_byteoffset = RSTRING_LEN(output); RSTRING_LEN 3757 transcode.c if (RSTRING_LEN(output) < output_byteoffset) RSTRING_LEN 3778 transcode.c is = ip + RSTRING_LEN(input); RSTRING_LEN 4069 transcode.c ret = rb_econv_insert_output(ec, (const unsigned char *)RSTRING_PTR(string), RSTRING_LEN(string), insert_enc); RSTRING_LEN 4213 transcode.c RSTRING_LEN(string), RSTRING_LEN 1953 variable.c if (!RSTRING_LEN(file)) { RSTRING_LEN 2031 variable.c if (!RSTRING_LEN(file) || !*RSTRING_PTR(file)) { RSTRING_LEN 1429 vm_backtrace.c long label_length = RSTRING_LEN(label); RSTRING_LEN 1430 vm_backtrace.c long base_label_length = RSTRING_LEN(base_label); RSTRING_LEN 1013 vm_dump.c (((len = RSTRING_LEN(s)) > max_name_length) ? max_name_length : (int)len) RSTRING_LEN 1282 vm_eval.c if (RB_TYPE_P(mesg, T_STRING) && !RSTRING_LEN(mesg)) { RSTRING_LEN 296 win32/file.c olen = RSTRING_LEN(dst); RSTRING_LEN 354 win32/file.c const long path_len = RSTRING_LEN(path); RSTRING_LEN 436 win32/file.c const long dir_len = RSTRING_LEN(dir); RSTRING_LEN 677 win32/file.c len = MultiByteToWideChar(cp, 0, RSTRING_PTR(path), RSTRING_LEN(path), NULL, 0); RSTRING_LEN 679 win32/file.c MultiByteToWideChar(cp, 0, RSTRING_PTR(path), RSTRING_LEN(path), wpath, len); RSTRING_LEN 617 win32/win32.c rb_write_error2(RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 2138 win32/win32.c *lenp = len = RSTRING_LEN(str); RSTRING_LEN 7070 win32/win32.c ptr = wbuffer = mbstr_to_wstr(CP_UTF8, RSTRING_PTR(str), RSTRING_LEN(str), &len); RSTRING_LEN 7075 win32/win32.c len = RSTRING_LEN(str) / sizeof(WCHAR);