RSTRING_LEN 1480 array.c len += NIL_P(tmp) ? 10 : RSTRING_LEN(tmp); RSTRING_LEN 1484 array.c len += RSTRING_LEN(sep) * (RARRAY_LEN(ary) - 1); RSTRING_LEN 606 bignum.c len = RSTRING_LEN(str); RSTRING_LEN 925 complex.c if (!rb_isdigit(RSTRING_PTR(s)[RSTRING_LEN(s) - 1])) RSTRING_LEN 1130 complex.c if (RSTRING_LEN(s) == 0) RSTRING_LEN 1211 complex.c if (NIL_P(RARRAY_PTR(a)[0]) || RSTRING_LEN(RARRAY_PTR(a)[1]) > 0) { RSTRING_LEN 1549 dir.c while (offset < RSTRING_LEN(str)) { RSTRING_LEN 1556 dir.c if (offset >= RSTRING_LEN(str)) break; RSTRING_LEN 1558 dir.c pend = RSTRING_PTR(str) + RSTRING_LEN(str); RSTRING_LEN 661 encoding.c if (TYPE(str2) == T_STRING && RSTRING_LEN(str2) == 0) RSTRING_LEN 663 encoding.c if (TYPE(str1) == T_STRING && RSTRING_LEN(str1) == 0) RSTRING_LEN 462 error.c if (RSTRING_LEN(exc) == 0) { RSTRING_LEN 800 error.c if (NIL_P(d) || RSTRING_LEN(d) > 65) { RSTRING_LEN 957 error.c (int)RSTRING_LEN(str), RSTRING_PTR(str)); RSTRING_LEN 104 eval_error.c warn_print2(RSTRING_PTR(mesg), RSTRING_LEN(mesg)); RSTRING_LEN 113 eval_error.c elen = RSTRING_LEN(e); RSTRING_LEN 130 eval_error.c warn_print2(RSTRING_PTR(epath), RSTRING_LEN(epath)); RSTRING_LEN 147 eval_error.c warn_print2(RSTRING_PTR(epath), RSTRING_LEN(epath)); RSTRING_LEN 640 ext/bigdecimal/bigdecimal.c denomi_power = power - RSTRING_LEN(digits); RSTRING_LEN 320 ext/curses/curses.c if (RSTRING_LEN(c) == 0 || RSTRING_LEN(c) > 1) { RSTRING_LEN 169 ext/dbm/dbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 209 ext/dbm/dbm.c val.dsize = RSTRING_LEN(valstr); RSTRING_LEN 214 ext/dbm/dbm.c if (val.dsize == RSTRING_LEN(valstr) && RSTRING_LEN 284 ext/dbm/dbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 358 ext/dbm/dbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 448 ext/dbm/dbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 451 ext/dbm/dbm.c val.dsize = RSTRING_LEN(valstr); RSTRING_LEN 611 ext/dbm/dbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 628 ext/dbm/dbm.c val.dsize = RSTRING_LEN(valstr); RSTRING_LEN 633 ext/dbm/dbm.c if (val.dsize == RSTRING_LEN(valstr) && RSTRING_LEN 37 ext/digest/bubblebabble/bubblebabble.c digest_len = RSTRING_LEN(str_digest); RSTRING_LEN 49 ext/digest/digest.c digest_len = RSTRING_LEN(str_digest); RSTRING_LEN 310 ext/digest/digest.c if (RSTRING_LEN(str1) == RSTRING_LEN(str2) && RSTRING_LEN 334 ext/digest/digest.c return INT2NUM(RSTRING_LEN(digest)); RSTRING_LEN 525 ext/digest/digest.c algo->update_func(pctx, (unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 430 ext/dl/cptr.c ptr = rb_dlptr_new(str, RSTRING_LEN(val), NULL); RSTRING_LEN 303 ext/gdbm/gdbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 341 ext/gdbm/gdbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 419 ext/gdbm/gdbm.c RSTRING_LEN(valstr) == RSTRING_LEN(valstr2) && RSTRING_LEN 421 ext/gdbm/gdbm.c RSTRING_LEN(valstr)) == 0) { RSTRING_LEN 502 ext/gdbm/gdbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 686 ext/gdbm/gdbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 689 ext/gdbm/gdbm.c val.dsize = RSTRING_LEN(valstr); RSTRING_LEN 945 ext/gdbm/gdbm.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 976 ext/gdbm/gdbm.c RSTRING_LEN(valstr) == RSTRING_LEN(valstr2) && RSTRING_LEN 978 ext/gdbm/gdbm.c RSTRING_LEN(valstr)) == 0) { RSTRING_LEN 226 ext/iconv/iconv.c volatile VALUE msg = rb_str_new(0, strlen(s) + RSTRING_LEN(to) + RSTRING_LEN 227 ext/iconv/iconv.c RSTRING_LEN(from) + 8); RSTRING_LEN 359 ext/iconv/iconv.c else if (TYPE(failed) != T_STRING || RSTRING_LEN(failed) < FAILED_MAXLEN) { RSTRING_LEN 388 ext/iconv/iconv.c if (RSTRING_PTR(str) + RSTRING_LEN(str) == ptr + len) RSTRING_LEN 441 ext/iconv/iconv.c slen = RSTRING_LEN(str); RSTRING_LEN 511 ext/iconv/iconv.c inlen = length = RSTRING_LEN(str); RSTRING_LEN 686 ext/iconv/iconv.c if (RSTRING_LEN(s)) RSTRING_LEN 904 ext/iconv/iconv.c const char *s = RSTRING_PTR(str), *e = s + RSTRING_LEN(str); RSTRING_LEN 936 ext/iconv/iconv.c if (RSTRING_LEN(s)) RSTRING_LEN 940 ext/iconv/iconv.c if (RSTRING_LEN(s)) RSTRING_LEN 63 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->object_nl)) rb_str_buf_append(buf, state->object_nl); RSTRING_LEN 65 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->object_nl)) { RSTRING_LEN 72 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->space_before)) { RSTRING_LEN 76 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->space)) rb_str_buf_append(buf, state->space); RSTRING_LEN 98 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->object_nl)) rb_str_buf_append(result, state->object_nl); RSTRING_LEN 100 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->object_nl)) rb_str_buf_append(result, state->object_nl); RSTRING_LEN 101 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->object_nl)) { RSTRING_LEN 113 ext/json/ext/generator/generator.c if (RSTRING_LEN(buf) > 1) rb_str_buf_cat2(buf, ","); RSTRING_LEN 181 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->array_nl)) rb_str_append(delim, state->array_nl); RSTRING_LEN 200 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->array_nl)) { RSTRING_LEN 209 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->array_nl)) rb_str_append(delim, state->array_nl); RSTRING_LEN 224 ext/json/ext/generator/generator.c if (RSTRING_LEN(state->array_nl)) { RSTRING_LEN 325 ext/json/ext/generator/generator.c VALUE result = rb_str_buf_new(RSTRING_LEN(self)); RSTRING_LEN 105 ext/json/ext/generator/unicode.c const UTF8* sourceEnd = source + RSTRING_LEN(string); RSTRING_LEN 49 ext/json/ext/generator/unicode.h #ifndef RSTRING_LEN RSTRING_LEN 1470 ext/json/ext/parser/parser.c len = RSTRING_LEN(source); RSTRING_LEN 54 ext/json/ext/parser/unicode.h #ifndef RSTRING_LEN RSTRING_LEN 158 ext/nkf/nkf.c i_len = RSTRING_LEN(src); RSTRING_LEN 163 ext/nkf/nkf.c o_len = RSTRING_LEN(result); RSTRING_LEN 195 ext/nkf/nkf.c i_len = RSTRING_LEN(src); RSTRING_LEN 173 ext/openssl/ossl.c len = RSTRING_LEN(pass); RSTRING_LEN 122 ext/openssl/ossl.h int len = RSTRING_LEN(str);\ RSTRING_LEN 217 ext/openssl/ossl_asn1.c ASN1_BIT_STRING_set(bstr, (unsigned char *)RSTRING_PTR(obj), RSTRING_LEN(obj)); RSTRING_LEN 232 ext/openssl/ossl_asn1.c ASN1_STRING_set(str, RSTRING_PTR(obj), RSTRING_LEN(obj)); RSTRING_LEN 298 ext/openssl/ossl_asn1.c ASN1_STRING_set(a1str, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 697 ext/openssl/ossl_asn1.c if((length = ASN1_object_size(1, RSTRING_LEN(value), tag)) <= 0) RSTRING_LEN 701 ext/openssl/ossl_asn1.c ASN1_put_object(&p, is_cons, RSTRING_LEN(value), tag, tag_class); RSTRING_LEN 702 ext/openssl/ossl_asn1.c memcpy(p, RSTRING_PTR(value), RSTRING_LEN(value)); RSTRING_LEN 703 ext/openssl/ossl_asn1.c p += RSTRING_LEN(value); RSTRING_LEN 826 ext/openssl/ossl_asn1.c ossl_asn1_decode0(&p, RSTRING_LEN(tmp), &offset, 0, 0, 1); RSTRING_LEN 842 ext/openssl/ossl_asn1.c ary = ossl_asn1_decode0(&p, RSTRING_LEN(tmp), &offset, 0, 1, 0); RSTRING_LEN 859 ext/openssl/ossl_asn1.c ret = ossl_asn1_decode0(&p, RSTRING_LEN(tmp), &offset, 0, 0, 0); RSTRING_LEN 972 ext/openssl/ossl_asn1.c seq_len = ASN1_object_size(1, RSTRING_LEN(value), tag); RSTRING_LEN 977 ext/openssl/ossl_asn1.c ASN1_put_object(&p, 1, RSTRING_LEN(value), tn, tc); RSTRING_LEN 981 ext/openssl/ossl_asn1.c ASN1_put_object(&p, 1, RSTRING_LEN(value), tag, V_ASN1_UNIVERSAL); RSTRING_LEN 983 ext/openssl/ossl_asn1.c else ASN1_put_object(&p, 1, RSTRING_LEN(value), tn, tc); RSTRING_LEN 985 ext/openssl/ossl_asn1.c memcpy(p, RSTRING_PTR(value), RSTRING_LEN(value)); RSTRING_LEN 986 ext/openssl/ossl_asn1.c p += RSTRING_LEN(value); RSTRING_LEN 42 ext/openssl/ossl_bio.c bio = BIO_new_mem_buf(RSTRING_PTR(obj), RSTRING_LEN(obj)); RSTRING_LEN 134 ext/openssl/ossl_bn.c if (!BN_mpi2bn((unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str), bn)) { RSTRING_LEN 139 ext/openssl/ossl_bn.c if (!BN_bin2bn((unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str), bn)) { RSTRING_LEN 198 ext/openssl/ossl_cipher.c if (EVP_MAX_IV_LENGTH > RSTRING_LEN(init_v)) { RSTRING_LEN 200 ext/openssl/ossl_cipher.c memcpy(iv, RSTRING_PTR(init_v), RSTRING_LEN(init_v)); RSTRING_LEN 205 ext/openssl/ossl_cipher.c (unsigned char *)RSTRING_PTR(pass), RSTRING_LEN(pass), 1, key, NULL); RSTRING_LEN 280 ext/openssl/ossl_cipher.c if(RSTRING_LEN(vsalt) != PKCS5_SALT_LEN) RSTRING_LEN 288 ext/openssl/ossl_cipher.c (unsigned char *)RSTRING_PTR(vpass), RSTRING_LEN(vpass), iter, key, iv); RSTRING_LEN 318 ext/openssl/ossl_cipher.c if ((in_len = RSTRING_LEN(data)) == 0) RSTRING_LEN 332 ext/openssl/ossl_cipher.c assert(out_len < RSTRING_LEN(str)); RSTRING_LEN 357 ext/openssl/ossl_cipher.c assert(out_len <= RSTRING_LEN(str)); RSTRING_LEN 395 ext/openssl/ossl_cipher.c if (RSTRING_LEN(key) < EVP_CIPHER_CTX_key_length(ctx)) RSTRING_LEN 420 ext/openssl/ossl_cipher.c if (RSTRING_LEN(iv) < EVP_CIPHER_CTX_iv_length(ctx)) RSTRING_LEN 157 ext/openssl/ossl_digest.c EVP_DigestUpdate(ctx, RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 73 ext/openssl/ossl_hmac.c HMAC_Init_ex(ctx, RSTRING_PTR(key), RSTRING_LEN(key), RSTRING_LEN 106 ext/openssl/ossl_hmac.c HMAC_Update(ctx, (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 201 ext/openssl/ossl_hmac.c buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LEN(key), RSTRING_LEN 202 ext/openssl/ossl_hmac.c (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len); RSTRING_LEN 223 ext/openssl/ossl_hmac.c buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LEN(key), RSTRING_LEN 224 ext/openssl/ossl_hmac.c (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len); RSTRING_LEN 67 ext/openssl/ossl_ns_spki.c if (!(spki = d2i_NETSCAPE_SPKI(NULL, &p, RSTRING_LEN(buffer)))) { RSTRING_LEN 187 ext/openssl/ossl_ns_spki.c RSTRING_LEN(str))) { RSTRING_LEN 114 ext/openssl/ossl_ocsp.c x = d2i_OCSP_REQUEST(&req, &p, RSTRING_LEN(arg)); RSTRING_LEN 139 ext/openssl/ossl_ocsp.c ret = OCSP_request_add1_nonce(req, (unsigned char *)RSTRING_PTR(val), RSTRING_LEN(val)); RSTRING_LEN 323 ext/openssl/ossl_ocsp.c x = d2i_OCSP_RESPONSE(&res, &p, RSTRING_LEN(arg)); RSTRING_LEN 443 ext/openssl/ossl_ocsp.c ret = OCSP_basic_add1_nonce(bs, (unsigned char *)RSTRING_PTR(val), RSTRING_LEN(val)); RSTRING_LEN 39 ext/openssl/ossl_pkcs5.c if (PKCS5_PBKDF2_HMAC(RSTRING_PTR(pass), RSTRING_LEN(pass), RSTRING_PTR(salt), RSTRING_LEN(salt), NUM2INT(iter), md, len, RSTRING_PTR(str)) != 1) RSTRING_LEN 75 ext/openssl/ossl_pkcs5.c if (PKCS5_PBKDF2_HMAC_SHA1(RSTRING_PTR(pass), RSTRING_LEN(pass), RSTRING_LEN 76 ext/openssl/ossl_pkcs5.c (const unsigned char *)RSTRING_PTR(salt), RSTRING_LEN(salt), NUM2INT(iter), RSTRING_LEN 176 ext/openssl/ossl_pkey.c EVP_SignUpdate(&ctx, RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 180 ext/openssl/ossl_pkey.c assert(buf_len <= RSTRING_LEN(str)); RSTRING_LEN 196 ext/openssl/ossl_pkey.c EVP_VerifyUpdate(&ctx, RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 197 ext/openssl/ossl_pkey.c switch (EVP_VerifyFinal(&ctx, (unsigned char *)RSTRING_PTR(sig), RSTRING_LEN(sig), pkey)) { RSTRING_LEN 399 ext/openssl/ossl_pkey_dsa.c if (!DSA_sign(0, (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), RSTRING_LEN 424 ext/openssl/ossl_pkey_dsa.c ret = DSA_verify(0, (unsigned char *)RSTRING_PTR(digest), RSTRING_LEN(digest), RSTRING_LEN 425 ext/openssl/ossl_pkey_dsa.c (unsigned char *)RSTRING_PTR(sig), RSTRING_LEN(sig), pkey->pkey.dsa); RSTRING_LEN 674 ext/openssl/ossl_pkey_ec.c if (ECDSA_sign(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LEN(data), (unsigned char *) RSTRING_PTR(str), &buf_len, ec) != 1) RSTRING_LEN 696 ext/openssl/ossl_pkey_ec.c switch (ECDSA_verify(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LEN(data), (unsigned char *) RSTRING_PTR(sig), RSTRING_LEN(sig), ec)) { RSTRING_LEN 1110 ext/openssl/ossl_pkey_ec.c if (EC_GROUP_set_seed(group, (unsigned char *)RSTRING_PTR(seed), RSTRING_LEN(seed)) != RSTRING_LEN(seed)) RSTRING_LEN 318 ext/openssl/ossl_pkey_rsa.c buf_len = RSA_public_encrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer), RSTRING_LEN 344 ext/openssl/ossl_pkey_rsa.c buf_len = RSA_public_decrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer), RSTRING_LEN 373 ext/openssl/ossl_pkey_rsa.c buf_len = RSA_private_encrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer), RSTRING_LEN 403 ext/openssl/ossl_pkey_rsa.c buf_len = RSA_private_decrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer), RSTRING_LEN 40 ext/openssl/ossl_rand.c RAND_seed(RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 54 ext/openssl/ossl_rand.c RAND_add(RSTRING_PTR(str), RSTRING_LEN(str), NUM2DBL(entropy)); RSTRING_LEN 567 ext/openssl/ossl_ssl.c RSTRING_LEN(val))){ RSTRING_LEN 1027 ext/openssl/ossl_ssl.c nread = SSL_read(ssl, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1077 ext/openssl/ossl_ssl.c nwrite = SSL_write(ssl, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 103 ext/openssl/ossl_x509attr.c x = d2i_X509_ATTRIBUTE(&attr, &p, RSTRING_LEN(oid)); RSTRING_LEN 285 ext/openssl/ossl_x509ext.c x = d2i_X509_EXTENSION(&ext, &p, RSTRING_LEN(oid)); RSTRING_LEN 324 ext/openssl/ossl_x509ext.c if(!(s = OPENSSL_malloc(RSTRING_LEN(data)))) RSTRING_LEN 326 ext/openssl/ossl_x509ext.c memcpy(s, RSTRING_PTR(data), RSTRING_LEN(data)); RSTRING_LEN 331 ext/openssl/ossl_x509ext.c if(!M_ASN1_OCTET_STRING_set(asn1s, s, RSTRING_LEN(data))){ RSTRING_LEN 143 ext/openssl/ossl_x509name.c x = d2i_X509_NAME(&name, &p, RSTRING_LEN(str)); RSTRING_LEN 170 ext/openssl/ossl_x509name.c (const unsigned char *)RSTRING_PTR(value), RSTRING_LEN(value), -1, 0)) { RSTRING_LEN 397 ext/readline/readline.c result[i + 1] = ALLOC_N(char, RSTRING_LEN(temp) + 1); RSTRING_LEN 577 ext/readline/readline.c if (RSTRING_LEN(str) == 0) { RSTRING_LEN 641 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 644 ext/readline/readline.c REALLOC_N(basic_word_break_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 647 ext/readline/readline.c RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 648 ext/readline/readline.c basic_word_break_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 704 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 707 ext/readline/readline.c REALLOC_N(completer_word_break_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 710 ext/readline/readline.c RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 711 ext/readline/readline.c completer_word_break_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 765 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 768 ext/readline/readline.c REALLOC_N(basic_quote_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 771 ext/readline/readline.c RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 772 ext/readline/readline.c basic_quote_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 829 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 832 ext/readline/readline.c REALLOC_N(completer_quote_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 834 ext/readline/readline.c strncpy(completer_quote_characters, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 835 ext/readline/readline.c completer_quote_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 891 ext/readline/readline.c ALLOC_N(char, RSTRING_LEN(str) + 1); RSTRING_LEN 894 ext/readline/readline.c REALLOC_N(filename_quote_characters, char, RSTRING_LEN(str) + 1); RSTRING_LEN 896 ext/readline/readline.c strncpy(filename_quote_characters, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 897 ext/readline/readline.c filename_quote_characters[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 10489 ext/ripper/ripper.c if (RSTRING_LEN(s) == lex_gets_ptr) return Qnil; RSTRING_LEN 10492 ext/ripper/ripper.c pend = RSTRING_PTR(s) + RSTRING_LEN(s); RSTRING_LEN 10670 ext/ripper/ripper.c lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 11348 ext/ripper/ripper.c lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 11384 ext/ripper/ripper.c len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 14915 ext/ripper/ripper.c id = rb_intern3(RSTRING_PTR(str), RSTRING_LEN(str), enc); RSTRING_LEN 5089 ext/ripper/ripper.y if (RSTRING_LEN(s) == lex_gets_ptr) return Qnil; RSTRING_LEN 5092 ext/ripper/ripper.y pend = RSTRING_PTR(s) + RSTRING_LEN(s); RSTRING_LEN 5270 ext/ripper/ripper.y lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 5948 ext/ripper/ripper.y lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 5984 ext/ripper/ripper.y len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 9515 ext/ripper/ripper.y id = rb_intern3(RSTRING_PTR(str), RSTRING_LEN(str), enc); RSTRING_LEN 147 ext/sdbm/init.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 187 ext/sdbm/init.c val.dsize = RSTRING_LEN(valstr); RSTRING_LEN 192 ext/sdbm/init.c if (val.dsize == RSTRING_LEN(valstr) && RSTRING_LEN 261 ext/sdbm/init.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 336 ext/sdbm/init.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 403 ext/sdbm/init.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 406 ext/sdbm/init.c val.dsize = RSTRING_LEN(valstr); RSTRING_LEN 590 ext/sdbm/init.c key.dsize = RSTRING_LEN(keystr); RSTRING_LEN 607 ext/sdbm/init.c val.dsize = RSTRING_LEN(valstr); RSTRING_LEN 612 ext/sdbm/init.c if (val.dsize == RSTRING_LEN(valstr) && RSTRING_LEN 399 ext/socket/socket.c vlen = RSTRING_LEN(val); RSTRING_LEN 514 ext/socket/socket.c return (VALUE)sendto(arg->fd, RSTRING_PTR(mesg), RSTRING_LEN(mesg), RSTRING_LEN 523 ext/socket/socket.c return (VALUE)send(arg->fd, RSTRING_PTR(mesg), RSTRING_LEN(mesg), RSTRING_LEN 544 ext/socket/socket.c arg.tolen = RSTRING_LEN(to); RSTRING_LEN 611 ext/socket/socket.c return (VALUE)recvfrom(arg->fd, RSTRING_PTR(arg->str), RSTRING_LEN(arg->str), RSTRING_LEN 645 ext/socket/socket.c if (RBASIC(str)->klass || RSTRING_LEN(str) != buflen) { RSTRING_LEN 651 ext/socket/socket.c if (slen < RSTRING_LEN(str)) { RSTRING_LEN 720 ext/socket/socket.c if (slen < RSTRING_LEN(str)) { RSTRING_LEN 1677 ext/socket/socket.c if (sizeof(sockaddr.sun_path) <= RSTRING_LEN(path)) { RSTRING_LEN 1681 ext/socket/socket.c memcpy(sockaddr.sun_path, RSTRING_PTR(path), RSTRING_LEN(path)); RSTRING_LEN 2548 ext/socket/socket.c n = ruby_connect(fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LEN(addr), 0); RSTRING_LEN 2604 ext/socket/socket.c n = connect(fptr->fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LEN(addr)); RSTRING_LEN 2698 ext/socket/socket.c if (bind(fptr->fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LEN(addr)) < 0) RSTRING_LEN 3197 ext/socket/socket.c else if (RSTRING_LEN(addr) == 16) { RSTRING_LEN 3201 ext/socket/socket.c h = gethostbyaddr(RSTRING_PTR(addr), RSTRING_LEN(addr), t); RSTRING_LEN 3348 ext/socket/socket.c if (sizeof(ss) < RSTRING_LEN(sa)) { RSTRING_LEN 3351 ext/socket/socket.c memcpy(&ss, RSTRING_PTR(sa), RSTRING_LEN(sa)); RSTRING_LEN 3352 ext/socket/socket.c if (RSTRING_LEN(sa) != SA_LEN((struct sockaddr*)&ss)) { RSTRING_LEN 3487 ext/socket/socket.c if (RSTRING_LEN(addr) < RSTRING_LEN 3538 ext/socket/socket.c if (RSTRING_LEN(addr) < RSTRING_LEN 3546 ext/socket/socket.c if (sizeof(struct sockaddr_un) < RSTRING_LEN(addr)) { RSTRING_LEN 3548 ext/socket/socket.c RSTRING_LEN(addr), (int)sizeof(struct sockaddr_un)); RSTRING_LEN 3550 ext/socket/socket.c sun_path = unixpath(sockaddr, RSTRING_LEN(addr)); RSTRING_LEN 3551 ext/socket/socket.c if (sizeof(struct sockaddr_un) == RSTRING_LEN(addr) && RSTRING_LEN 3553 ext/socket/socket.c sun_path + strlen(sun_path) == RSTRING_PTR(addr) + RSTRING_LEN(addr)) { RSTRING_LEN 93 ext/stringio/stringio.c int rlen = RSTRING_LEN(str) - pos; RSTRING_LEN 424 ext/stringio/stringio.c if (ptr->pos < RSTRING_LEN(ptr->string)) return Qfalse; RSTRING_LEN 580 ext/stringio/stringio.c offset += RSTRING_LEN(ptr->string); RSTRING_LEN 623 ext/stringio/stringio.c while (ptr->pos < RSTRING_LEN(ptr->string)) { RSTRING_LEN 644 ext/stringio/stringio.c if (ptr->pos >= RSTRING_LEN(ptr->string)) { RSTRING_LEN 664 ext/stringio/stringio.c if (ptr->pos >= RSTRING_LEN(ptr->string)) { RSTRING_LEN 677 ext/stringio/stringio.c olen = RSTRING_LEN(ptr->string); RSTRING_LEN 861 ext/stringio/stringio.c if (ptr->pos >= (n = RSTRING_LEN(ptr->string))) { RSTRING_LEN 865 ext/stringio/stringio.c e = s + RSTRING_LEN(ptr->string); RSTRING_LEN 873 ext/stringio/stringio.c else if ((n = RSTRING_LEN(str)) == 0) { RSTRING_LEN 1022 ext/stringio/stringio.c len = RSTRING_LEN(str); RSTRING_LEN 1025 ext/stringio/stringio.c olen = RSTRING_LEN(ptr->string); RSTRING_LEN 1081 ext/stringio/stringio.c olen = RSTRING_LEN(ptr->string); RSTRING_LEN 1123 ext/stringio/stringio.c if (len > 0 && ptr->pos >= RSTRING_LEN(ptr->string)) { RSTRING_LEN 1132 ext/stringio/stringio.c len = RSTRING_LEN(ptr->string); RSTRING_LEN 1153 ext/stringio/stringio.c long rest = RSTRING_LEN(ptr->string) - ptr->pos; RSTRING_LEN 1163 ext/stringio/stringio.c ptr->pos += len = RSTRING_LEN(str); RSTRING_LEN 1217 ext/stringio/stringio.c return ULONG2NUM(RSTRING_LEN(string)); RSTRING_LEN 1232 ext/stringio/stringio.c long plen = RSTRING_LEN(string); RSTRING_LEN 46 ext/strscan/strscan.c #define S_LEN(s) (RSTRING_LEN((s)->str)) RSTRING_LEN 51 ext/strscan/strscan.c #define EOS_P(s) ((s)->curr >= RSTRING_LEN(p->str)) RSTRING_LEN 156 ext/syck/rubyext.c len = RSTRING_LEN(str2); RSTRING_LEN 177 ext/syck/rubyext.c syck_parser_str( parser, RSTRING_PTR(port), RSTRING_LEN(port), NULL ); RSTRING_LEN 1046 ext/syck/rubyext.c ivn = S_ALLOCA_N( char, RSTRING_LEN(ivname) + 2 ); RSTRING_LEN 1049 ext/syck/rubyext.c strncat( ivn, RSTRING_PTR(ivname), RSTRING_LEN(ivname) ); RSTRING_LEN 1077 ext/syck/rubyext.c if (NIL_P(type) || RSTRING_LEN(StringValue(type)) == 0) RSTRING_LEN 1082 ext/syck/rubyext.c if ( ! (NIL_P(type) || RSTRING_LEN(StringValue(type)) == 0) ) RSTRING_LEN 1232 ext/syck/rubyext.c type_id = syck_match_implicit( RSTRING_PTR(val), RSTRING_LEN(val) ); RSTRING_LEN 1497 ext/syck/rubyext.c node->data.str->ptr = syck_strndup( RSTRING_PTR(val), RSTRING_LEN(val) ); RSTRING_LEN 1498 ext/syck/rubyext.c node->data.str->len = RSTRING_LEN(val); RSTRING_LEN 1757 ext/syck/rubyext.c node->type_id = syck_strndup( RSTRING_PTR(type_id), RSTRING_LEN(type_id) ); RSTRING_LEN 2573 ext/tk/tcltklib.c buf = ALLOC_N(char, RSTRING_LEN(msg)+1); RSTRING_LEN 2575 ext/tk/tcltklib.c memcpy(buf, RSTRING_PTR(msg), RSTRING_LEN(msg)); RSTRING_LEN 2576 ext/tk/tcltklib.c buf[RSTRING_LEN(msg)] = 0; RSTRING_LEN 2580 ext/tk/tcltklib.c Tcl_ExternalToUtfDString(encoding, buf, RSTRING_LEN(msg), &dstr); RSTRING_LEN 6117 ext/tk/tcltklib.c return Tcl_NewStringObj((char*)s, RSTRING_LEN(str)); RSTRING_LEN 6125 ext/tk/tcltklib.c return Tcl_NewByteArrayObj((const unsigned char *)s, RSTRING_LEN(str)); RSTRING_LEN 6128 ext/tk/tcltklib.c return Tcl_NewStringObj(s, RSTRING_LEN(str)); RSTRING_LEN 6133 ext/tk/tcltklib.c return Tcl_NewByteArrayObj((const unsigned char *)s, RSTRING_LEN(str)); RSTRING_LEN 6135 ext/tk/tcltklib.c } else if (strlen(s) != RSTRING_LEN(str)) { RSTRING_LEN 6137 ext/tk/tcltklib.c return Tcl_NewByteArrayObj((const unsigned char *)s, RSTRING_LEN(str)); RSTRING_LEN 6140 ext/tk/tcltklib.c return Tcl_NewStringObj(s, RSTRING_LEN(str)); RSTRING_LEN 6809 ext/tk/tcltklib.c result = ip_eval_real(self, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 6830 ext/tk/tcltklib.c eval_str = ckalloc(sizeof(char) * (RSTRING_LEN(str) + 1)); RSTRING_LEN 6834 ext/tk/tcltklib.c memcpy(eval_str, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 6835 ext/tk/tcltklib.c eval_str[RSTRING_LEN(str)] = 0; RSTRING_LEN 6850 ext/tk/tcltklib.c evq->len = RSTRING_LEN(str); RSTRING_LEN 7099 ext/tk/tcltklib.c if (!RSTRING_LEN(enc)) { RSTRING_LEN 7153 ext/tk/tcltklib.c if (!RSTRING_LEN(str)) { RSTRING_LEN 7157 ext/tk/tcltklib.c buf = ALLOC_N(char, RSTRING_LEN(str)+1); RSTRING_LEN 7159 ext/tk/tcltklib.c memcpy(buf, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 7160 ext/tk/tcltklib.c buf[RSTRING_LEN(str)] = 0; RSTRING_LEN 7165 ext/tk/tcltklib.c Tcl_ExternalToUtfDString(encoding, buf, RSTRING_LEN(str), &dstr); RSTRING_LEN 7290 ext/tk/tcltklib.c if (!RSTRING_LEN(enc)) { RSTRING_LEN 7313 ext/tk/tcltklib.c tclstr = Tcl_NewStringObj(RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 7343 ext/tk/tcltklib.c if (RSTRING_LEN(str) == 0) { RSTRING_LEN 7348 ext/tk/tcltklib.c buf = ALLOC_N(char, RSTRING_LEN(str)+1); RSTRING_LEN 7350 ext/tk/tcltklib.c memcpy(buf, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 7351 ext/tk/tcltklib.c buf[RSTRING_LEN(str)] = 0; RSTRING_LEN 7356 ext/tk/tcltklib.c Tcl_UtfToExternalDString(encoding,buf,RSTRING_LEN(str),&dstr); RSTRING_LEN 7437 ext/tk/tcltklib.c if (!RSTRING_LEN(str)) { RSTRING_LEN 7445 ext/tk/tcltklib.c src_buf = ckalloc(sizeof(char) * (RSTRING_LEN(str)+1)); RSTRING_LEN 7449 ext/tk/tcltklib.c memcpy(src_buf, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 7450 ext/tk/tcltklib.c src_buf[RSTRING_LEN(str)] = 0; RSTRING_LEN 7453 ext/tk/tcltklib.c dst_buf = ckalloc(sizeof(char) * (RSTRING_LEN(str)+1)); RSTRING_LEN 7459 ext/tk/tcltklib.c while(RSTRING_LEN(str) > ptr - src_buf) { RSTRING_LEN 8967 ext/tk/tcltklib.c len += Tcl_ScanCountedElement(dst, RSTRING_LEN(argv[num]), RSTRING_LEN 8984 ext/tk/tcltklib.c RSTRING_LEN(argv[num]), RSTRING_LEN 9048 ext/tk/tcltklib.c len = Tcl_ScanCountedElement(RSTRING_PTR(src), RSTRING_LEN(src), RSTRING_LEN 9051 ext/tk/tcltklib.c len = Tcl_ConvertCountedElement(RSTRING_PTR(src), RSTRING_LEN(src), RSTRING_LEN 1034 ext/tk/tkutil/tkutil.c len = RSTRING_LEN(value); RSTRING_LEN 1381 ext/tk/tkutil/tkutil.c keylen = RSTRING_LEN(keyval) - 1; RSTRING_LEN 1523 ext/tk/tkutil/tkutil.c subst_inf->keylen[chr] = RSTRING_LEN(RARRAY_PTR(inf)[0]); RSTRING_LEN 1526 ext/tk/tkutil/tkutil.c RSTRING_LEN(RARRAY_PTR(inf)[0])); RSTRING_LEN 1528 ext/tk/tkutil/tkutil.c subst_inf->key[chr] = malloc(RSTRING_LEN(RARRAY_PTR(inf)[0]) + 1); RSTRING_LEN 1531 ext/tk/tkutil/tkutil.c RSTRING_LEN(RARRAY_PTR(inf)[0]) + 1); RSTRING_LEN 1532 ext/tk/tkutil/tkutil.c subst_inf->key[chr][RSTRING_LEN(RARRAY_PTR(inf)[0])] = '\0'; RSTRING_LEN 1588 ext/tk/tkutil/tkutil.c int keylen = RSTRING_LEN(arg_key); RSTRING_LEN 1356 ext/win32ole/win32ole.c len = RSTRING_LEN(vstr); RSTRING_LEN 1364 ext/win32ole/win32ole.c len = RSTRING_LEN(vstr); RSTRING_LEN 1372 ext/win32ole/win32ole.c size = MultiByteToWideChar(cp, 0, RSTRING_PTR(vstr), RSTRING_LEN(vstr), NULL, 0); RSTRING_LEN 1374 ext/win32ole/win32ole.c MultiByteToWideChar(cp, 0, RSTRING_PTR(vstr), RSTRING_LEN(vstr), pw, size); RSTRING_LEN 1910 ext/win32ole/win32ole.c long len = RSTRING_LEN(val); RSTRING_LEN 300 ext/zlib/zlib.c sum = func(sum, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 446 ext/zlib/zlib.c if (RSTRING_LEN(z->buf) - z->buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) { RSTRING_LEN 494 ext/zlib/zlib.c if (RSTRING_LEN(z->buf) < z->buf_filled + len) { RSTRING_LEN 512 ext/zlib/zlib.c zstream_append_buffer((z),(Bytef*)RSTRING_PTR(v),RSTRING_LEN(v)) RSTRING_LEN 550 ext/zlib/zlib.c z->stream.avail_out = RSTRING_LEN(z->buf) - z->buf_filled; RSTRING_LEN 561 ext/zlib/zlib.c if (NIL_P(z->buf) || RSTRING_LEN(z->buf) - z->buf_filled == 0) { RSTRING_LEN 577 ext/zlib/zlib.c if (NIL_P(z->buf) || RSTRING_LEN(z->buf) - z->buf_filled == 0) { RSTRING_LEN 606 ext/zlib/zlib.c zstream_append_input((z), (Bytef*)RSTRING_PTR(v), RSTRING_LEN(v)) RSTRING_LEN 611 ext/zlib/zlib.c if (NIL_P(z->input) || RSTRING_LEN(z->input) <= len) { RSTRING_LEN 616 ext/zlib/zlib.c RSTRING_LEN(z->input) - len); RSTRING_LEN 617 ext/zlib/zlib.c rb_str_resize(z->input, RSTRING_LEN(z->input) - len); RSTRING_LEN 707 ext/zlib/zlib.c z->stream.avail_in = RSTRING_LEN(z->input); RSTRING_LEN 766 ext/zlib/zlib.c z->stream.avail_in = RSTRING_LEN(z->input); RSTRING_LEN 770 ext/zlib/zlib.c RSTRING_LEN(z->input) - z->stream.avail_in); RSTRING_LEN 1019 ext/zlib/zlib.c return INT2FIX(NIL_P(z->input) ? 0 : (int)(RSTRING_LEN(z->input))); RSTRING_LEN 1167 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), Z_FINISH); RSTRING_LEN 1225 ext/zlib/zlib.c if (flush != Z_NO_FLUSH || RSTRING_LEN(src) > 0) { /* prevent BUF_ERROR */ RSTRING_LEN 1226 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), flush); RSTRING_LEN 1353 ext/zlib/zlib.c (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src)); RSTRING_LEN 1413 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), Z_SYNC_FLUSH); RSTRING_LEN 1466 ext/zlib/zlib.c if (RSTRING_LEN(src) > 0) { /* prevent Z_BUF_ERROR */ RSTRING_LEN 1467 ext/zlib/zlib.c zstream_run(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src), Z_SYNC_FLUSH); RSTRING_LEN 1560 ext/zlib/zlib.c return zstream_sync(z, (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src)); RSTRING_LEN 1602 ext/zlib/zlib.c (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src)); RSTRING_LEN 1836 ext/zlib/zlib.c while (NIL_P(gz->z.input) || RSTRING_LEN(gz->z.input) < size) { RSTRING_LEN 1852 ext/zlib/zlib.c RSTRING_LEN(gz->z.input) - offset); RSTRING_LEN 1858 ext/zlib/zlib.c offset = RSTRING_LEN(gz->z.input); RSTRING_LEN 2018 ext/zlib/zlib.c if (gz->z.input != Qnil && RSTRING_LEN(gz->z.input) > 0) { RSTRING_LEN 2076 ext/zlib/zlib.c if (RSTRING_LEN(str) > 0) { /* prevent Z_BUF_ERROR */ RSTRING_LEN 2077 ext/zlib/zlib.c zstream_run(&gz->z, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str), RSTRING_LEN 2088 ext/zlib/zlib.c if (RSTRING_LEN(str) <= gz->ungetc) { RSTRING_LEN 2089 ext/zlib/zlib.c gz->ungetc -= RSTRING_LEN(str); RSTRING_LEN 2093 ext/zlib/zlib.c RSTRING_LEN(str) - gz->ungetc); RSTRING_LEN 2175 ext/zlib/zlib.c rb_str_resize(outbuf, RSTRING_LEN(dst)); RSTRING_LEN 2176 ext/zlib/zlib.c memcpy(RSTRING_PTR(outbuf), RSTRING_PTR(dst), RSTRING_LEN(dst)); RSTRING_LEN 2318 ext/zlib/zlib.c n += RSTRING_LEN(gz->z.input); RSTRING_LEN 2545 ext/zlib/zlib.c p = memchr(RSTRING_PTR(s), '\0', RSTRING_LEN(s)); RSTRING_LEN 2567 ext/zlib/zlib.c p = memchr(RSTRING_PTR(s), '\0', RSTRING_LEN(s)); RSTRING_LEN 2817 ext/zlib/zlib.c gzfile_write(gz, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 2818 ext/zlib/zlib.c return INT2FIX(RSTRING_LEN(str)); RSTRING_LEN 3147 ext/zlib/zlib.c gzfile_ungets(gz, (const Bytef*)RSTRING_PTR(s), RSTRING_LEN(s)); RSTRING_LEN 3196 ext/zlib/zlib.c if (RSTRING_PTR(rs) != rsptr && RSTRING_LEN(rs) != rslen) RSTRING_LEN 3223 ext/zlib/zlib.c if (RSTRING_LEN(dst) != 0) gz->lineno++; RSTRING_LEN 3229 ext/zlib/zlib.c if (RSTRING_LEN(rs) == 0) { RSTRING_LEN 3235 ext/zlib/zlib.c rslen = RSTRING_LEN(rs); RSTRING_LEN 1575 file.c if (RSTRING_LEN(fname1) != RSTRING_LEN(fname2)) return Qfalse; RSTRING_LEN 1576 file.c if (rb_memcicmp(RSTRING_PTR(fname1), RSTRING_PTR(fname2), RSTRING_LEN(fname1))) RSTRING_LEN 2172 file.c int l1 = RSTRING_LEN(s1), l2 = RSTRING_LEN(s2); RSTRING_LEN 2594 file.c buflen = RSTRING_LEN(result),\ RSTRING_LEN 3020 file.c if (RSTRING_LEN(fname) == 0 || !*(name = RSTRING_PTR(fname))) RSTRING_LEN 3063 file.c if (f == RSTRING_LEN(fname)) return fname; RSTRING_LEN 3247 file.c len += RSTRING_LEN(RARRAY_PTR(ary)[i]); RSTRING_LEN 3255 file.c len += RSTRING_LEN(sep) * RARRAY_LEN(ary) - 1; RSTRING_LEN 4519 file.c fnlen = RSTRING_LEN(fname); RSTRING_LEN 4538 file.c fnlen = RSTRING_LEN(fname); RSTRING_LEN 4546 file.c if (RSTRING_LEN(str) == 0) continue; RSTRING_LEN 4597 file.c if (RSTRING_LEN(str) > 0) { RSTRING_LEN 1220 hash.c if (RSTRING_LEN(str) > 1) { RSTRING_LEN 1852 hash.c if (strlen(nam) != RSTRING_LEN(name)) { RSTRING_LEN 1886 hash.c if (strlen(nam) != RSTRING_LEN(name)) { RSTRING_LEN 1917 hash.c if (strlen(nam) != RSTRING_LEN(key)) { RSTRING_LEN 2057 hash.c if (strlen(name) != RSTRING_LEN(nm)) RSTRING_LEN 2059 hash.c if (strlen(value) != RSTRING_LEN(val)) RSTRING_LEN 2359 hash.c if (strlen(s) != RSTRING_LEN(key)) RSTRING_LEN 2372 hash.c if (strlen(s) != RSTRING_LEN(key)) RSTRING_LEN 2392 hash.c if (RSTRING_LEN(obj) == len && strncmp(s, RSTRING_PTR(obj), len) == 0) { RSTRING_LEN 2416 hash.c if (RSTRING_LEN(obj) == len && strncmp(s, RSTRING_PTR(obj), len) == 0) { RSTRING_LEN 2441 hash.c if (RSTRING_LEN(value) == len && strncmp(s, RSTRING_PTR(value), len) == 0) { RSTRING_LEN 497 include/ruby/ruby.h #define NUM2CHR(x) (((TYPE(x) == T_STRING)&&(RSTRING_LEN(x)>=1))?\ RSTRING_LEN 604 include/ruby/ruby.h #define RSTRING_END(str) (RSTRING_PTR(str)+RSTRING_LEN(str)) RSTRING_LEN 643 include/ruby/ruby.h #define RREGEXP_SRC_LEN(r) RSTRING_LEN(RREGEXP(r)->src) RSTRING_LEN 321 io.c int len = RSTRING_LEN(str); RSTRING_LEN 782 io.c len = RSTRING_LEN(str); RSTRING_LEN 835 io.c if (offset < RSTRING_LEN(str)) RSTRING_LEN 909 io.c if (RSTRING_LEN(str) == 0) return INT2FIX(0); RSTRING_LEN 1425 io.c long len = RSTRING_LEN(str) - offset; RSTRING_LEN 1601 io.c slen = RSTRING_LEN(str); RSTRING_LEN 1602 io.c rb_str_resize(str, RSTRING_LEN(str) + len); RSTRING_LEN 1725 io.c if (RSTRING_LEN(str) != len) { RSTRING_LEN 1732 io.c if (RSTRING_LEN(str) != len) goto modified; RSTRING_LEN 1925 io.c n = write(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 1988 io.c if (RSTRING_LEN(str) != len) { RSTRING_LEN 2006 io.c if (RSTRING_PTR(rs) != rsptr && RSTRING_LEN(rs) != rslen) RSTRING_LEN 2049 io.c return (unsigned char)RSTRING_PTR(str)[RSTRING_LEN(str)-1]; RSTRING_LEN 2068 io.c last = RSTRING_LEN(str); RSTRING_LEN 2081 io.c return (unsigned char)RSTRING_PTR(str)[RSTRING_LEN(str)-1]; RSTRING_LEN 2217 io.c if (RSTRING_LEN(str) == 0) return Qnil; RSTRING_LEN 2233 io.c rslen = RSTRING_LEN(rs); RSTRING_LEN 2252 io.c if (RSTRING_LEN(str) < rslen) continue; RSTRING_LEN 2254 io.c e = s + RSTRING_LEN(str); RSTRING_LEN 2263 io.c p = s + RSTRING_LEN(str); RSTRING_LEN 2604 io.c r = rb_enc_precise_mbclen(RSTRING_PTR(str), RSTRING_PTR(str)+RSTRING_LEN(str), enc); RSTRING_LEN 2899 io.c len = RSTRING_LEN(c); RSTRING_LEN 3518 io.c n = write(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 3571 io.c if (RSTRING_LEN(str) != ilen) { RSTRING_LEN 4729 io.c if (RSTRING_LEN(prog) == 1 && cmd[0] == '-') { RSTRING_LEN 5006 io.c long l = RSTRING_LEN(filename_or_command); RSTRING_LEN 5637 io.c if (RSTRING_LEN(line) == 0 || RSTRING_LEN 5638 io.c RSTRING_PTR(line)[RSTRING_LEN(line)-1] != '\n') { RSTRING_LEN 6747 io.c if (len <= RSTRING_LEN(arg)) { RSTRING_LEN 6748 io.c len = RSTRING_LEN(arg); RSTRING_LEN 6750 io.c if (RSTRING_LEN(arg) < len) { RSTRING_LEN 7652 io.c if (read_method == id_read && RSTRING_LEN(buf) == 0) { RSTRING_LEN 8072 io.c if (RSTRING_LEN(str) < len) { RSTRING_LEN 8073 io.c len -= RSTRING_LEN(str); RSTRING_LEN 787 iseq.c long slen = RSTRING_LEN(str); RSTRING_LEN 795 iseq.c long slen = RSTRING_LEN(str); RSTRING_LEN 853 iseq.c if ((i = RSTRING_LEN(str)) < header_minlen) { RSTRING_LEN 79 load.c long n = RSTRING_LEN(p); RSTRING_LEN 144 load.c if ((n = RSTRING_LEN(v)) < len) continue; RSTRING_LEN 151 load.c f += RSTRING_LEN(p) + 1; RSTRING_LEN 195 marshal.c if (arg->dest && RSTRING_LEN(buf) >= BUFSIZ) { RSTRING_LEN 615 marshal.c w_bytes(RSTRING_PTR(v), RSTRING_LEN(v), arg); RSTRING_LEN 649 marshal.c w_bytes(RSTRING_PTR(path), RSTRING_LEN(path), arg); RSTRING_LEN 657 marshal.c w_bytes(RSTRING_PTR(path), RSTRING_LEN(path), arg); RSTRING_LEN 696 marshal.c w_bytes(RSTRING_PTR(obj), RSTRING_LEN(obj), arg); RSTRING_LEN 947 marshal.c if (RSTRING_LEN(arg->src) > arg->offset) { RSTRING_LEN 1021 marshal.c if (RSTRING_LEN(arg->src) - arg->offset >= len) { RSTRING_LEN 1037 marshal.c if (RSTRING_LEN(str) != len) goto too_short; RSTRING_LEN 1311 marshal.c d = load_mantissa(d, e, RSTRING_LEN(str) - (e - ptr)); RSTRING_LEN 2212 object.c len = RSTRING_LEN(str); RSTRING_LEN 2311 object.c if (len) *len = RSTRING_LEN(str); RSTRING_LEN 2312 object.c else if (RTEST(ruby_verbose) && RSTRING_LEN(str) != strlen(RSTRING_PTR(str))) { RSTRING_LEN 454 pack.c pend = p + RSTRING_LEN(fmt); RSTRING_LEN 465 pack.c if (RSTRING_PTR(fmt) + RSTRING_LEN(fmt) != pend) { RSTRING_LEN 535 pack.c plen = RSTRING_LEN(from); RSTRING_LEN 867 pack.c plen = RSTRING_LEN(res); RSTRING_LEN 874 pack.c len -= RSTRING_LEN(res); RSTRING_LEN 906 pack.c plen = RSTRING_LEN(from); RSTRING_LEN 941 pack.c if (RSTRING_LEN(from) < len) { RSTRING_LEN 943 pack.c RSTRING_LEN(from), len); RSTRING_LEN 998 pack.c if (RSTRING_LEN(buf)) { RSTRING_LEN 1000 pack.c bufe = bufs + RSTRING_LEN(buf) - 1; RSTRING_LEN 1007 pack.c rb_str_buf_cat(res, RSTRING_PTR(buf), RSTRING_LEN(buf)); RSTRING_LEN 1098 pack.c unsigned char *send = s + RSTRING_LEN(from); RSTRING_LEN 1361 pack.c send = s + RSTRING_LEN(str); RSTRING_LEN 1363 pack.c pend = p + RSTRING_LEN(fmt); RSTRING_LEN 1786 pack.c if (total > RSTRING_LEN(buf)) { RSTRING_LEN 1787 pack.c len -= total - RSTRING_LEN(buf); RSTRING_LEN 1788 pack.c total = RSTRING_LEN(buf); RSTRING_LEN 1938 pack.c if (len > RSTRING_LEN(str)) RSTRING_LEN 1973 pack.c if (len < RSTRING_LEN(*p)) { RSTRING_LEN 10421 parse.c if (RSTRING_LEN(s) == lex_gets_ptr) return Qnil; RSTRING_LEN 10424 parse.c pend = RSTRING_PTR(s) + RSTRING_LEN(s); RSTRING_LEN 10602 parse.c lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 11280 parse.c lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 11316 parse.c len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 14847 parse.c id = rb_intern3(RSTRING_PTR(str), RSTRING_LEN(str), enc); RSTRING_LEN 5089 parse.y if (RSTRING_LEN(s) == lex_gets_ptr) return Qnil; RSTRING_LEN 5092 parse.y pend = RSTRING_PTR(s) + RSTRING_LEN(s); RSTRING_LEN 5270 parse.y lex_pend = lex_p + RSTRING_LEN(v); RSTRING_LEN 5948 parse.y lex_pend = lex_pbeg + RSTRING_LEN(line); RSTRING_LEN 5984 parse.y len = RSTRING_LEN(here->nd_lit) - 1; RSTRING_LEN 9515 parse.y id = rb_intern3(RSTRING_PTR(str), RSTRING_LEN(str), enc); RSTRING_LEN 770 range.c RSTRING_LEN(beg) == 1 && RSTRING_LEN(end) == 1) { RSTRING_LEN 773 range.c if (RSTRING_LEN(val) == 0 || RSTRING_LEN(val) > 1) RSTRING_LEN 1316 rational.c if (RSTRING_LEN(s) == 0) RSTRING_LEN 1384 rational.c if (NIL_P(RARRAY_PTR(a)[0]) || RSTRING_LEN(RARRAY_PTR(a)[1]) > 0) { RSTRING_LEN 591 re.c return rb_enc_reg_error_desc(RSTRING_PTR(str), RSTRING_LEN(str), RSTRING_LEN 848 re.c e = s + RSTRING_LEN(RMATCH(match)->str); RSTRING_LEN 1240 re.c (UChar* )(RSTRING_PTR(unescaped) + RSTRING_LEN(unescaped)), RSTRING_LEN 1265 re.c range = RSTRING_LEN(str) - pos; RSTRING_LEN 1268 re.c if (pos > 0 && ONIGENC_MBC_MAXLEN(enc) != 1 && pos < RSTRING_LEN(str)) { RSTRING_LEN 1272 re.c p = onigenc_get_right_adjust_char_head(enc, string, string + pos, string + RSTRING_LEN(str)); RSTRING_LEN 1275 re.c p = ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, string, string + pos, string + RSTRING_LEN(str)); RSTRING_LEN 1293 re.c if (pos > RSTRING_LEN(str) || pos < 0) { RSTRING_LEN 1315 re.c range += RSTRING_LEN(str); RSTRING_LEN 1319 re.c ((UChar*)(RSTRING_PTR(str)) + RSTRING_LEN(str)), RSTRING_LEN 1472 re.c str = rb_str_subseq(str, pos, RSTRING_LEN(str) - pos); RSTRING_LEN 2237 re.c end = p + RSTRING_LEN(str); RSTRING_LEN 2270 re.c end = p + RSTRING_LEN(str); RSTRING_LEN 2348 re.c re->ptr = make_regexp(RSTRING_PTR(unescaped), RSTRING_LEN(unescaped), enc, RSTRING_LEN 2372 re.c ret = rb_reg_initialize(obj, RSTRING_PTR(str), RSTRING_LEN(str), enc, RSTRING_LEN 2450 re.c if (reg_cache && RREGEXP_SRC_LEN(reg_cache) == RSTRING_LEN(str) RSTRING_LEN 2452 re.c && memcmp(RREGEXP_SRC_PTR(reg_cache), RSTRING_PTR(str), RSTRING_LEN(str)) == 0) RSTRING_LEN 2809 re.c ? rb_reg_initialize(self, ptr, RSTRING_LEN(str), enc, flags, err) RSTRING_LEN 2827 re.c send = s + RSTRING_LEN(str); RSTRING_LEN 2852 re.c tmp = rb_str_new(0, RSTRING_LEN(str)*2); RSTRING_LEN 3153 re.c e = s + RSTRING_LEN(str); RSTRING_LEN 3227 re.c rb_enc_str_buf_cat(val, RSTRING_PTR(src)+END(0), RSTRING_LEN(src)-END(0), src_enc); RSTRING_LEN 568 ruby.c argc = RSTRING_LEN(argary) / sizeof(ap); RSTRING_LEN 1473 ruby.c if (RSTRING_LEN(line) > 2 RSTRING_LEN 1496 ruby.c char *pend = RSTRING_PTR(line) + RSTRING_LEN(line); RSTRING_LEN 1526 ruby.c RSTRING_PTR(line)[RSTRING_LEN(line) - 1] = '\0'; RSTRING_LEN 1527 ruby.c if (RSTRING_PTR(line)[RSTRING_LEN(line) - 2] == '\r') RSTRING_LEN 1528 ruby.c RSTRING_PTR(line)[RSTRING_LEN(line) - 2] = '\0'; RSTRING_LEN 1656 ruby.c i = RSTRING_LEN(val); RSTRING_LEN 763 signal.c switch (RSTRING_LEN(command)) { RSTRING_LEN 464 sprintf.c end = p + RSTRING_LEN(fmt); RSTRING_LEN 654 sprintf.c len = RSTRING_LEN(str); RSTRING_LEN 85 string.c long n = RSTRING_LEN(str);\ RSTRING_LEN 98 string.c memcpy(tmp, RSTRING_PTR(str), RSTRING_LEN(str));\ RSTRING_LEN 100 string.c RSTRING(str)->as.heap.len = RSTRING_LEN(str);\ RSTRING_LEN 300 string.c if (RSTRING_LEN(dest) == 0) { RSTRING_LEN 324 string.c cr = coderange_scan(RSTRING_PTR(str), RSTRING_LEN(str), enc); RSTRING_LEN 345 string.c if (RSTRING_PTR(s) != p || RSTRING_LEN(s) != len){ RSTRING_LEN 498 string.c len = RSTRING_LEN(str); RSTRING_LEN 595 string.c if (RSTRING_LEN(str) <= RSTRING_EMBED_LEN_MAX) { RSTRING_LEN 597 string.c memcpy(RSTRING_PTR(str2), RSTRING_PTR(str), RSTRING_LEN(str)+1); RSTRING_LEN 598 string.c STR_SET_EMBED_LEN(str2, RSTRING_LEN(str)); RSTRING_LEN 602 string.c RSTRING(str2)->as.heap.len = RSTRING_LEN(str); RSTRING_LEN 643 string.c RSTRING(str2)->as.heap.len = RSTRING_LEN(str); RSTRING_LEN 667 string.c ofs = RSTRING_LEN(str) - RSTRING_LEN(orig); RSTRING_LEN 678 string.c str = str_new(klass, RSTRING_PTR(orig), RSTRING_LEN(orig)); RSTRING_LEN 775 string.c if (RSTRING_LEN(str2) <= RSTRING_EMBED_LEN_MAX) { RSTRING_LEN 777 string.c memcpy(RSTRING_PTR(str), RSTRING_PTR(str2), RSTRING_LEN(str2)+1); RSTRING_LEN 778 string.c STR_SET_EMBED_LEN(str, RSTRING_LEN(str2)); RSTRING_LEN 786 string.c RSTRING(str)->as.heap.len = RSTRING_LEN(str2); RSTRING_LEN 954 string.c if (single_byte_optimizable(str)) return RSTRING_LEN(str); RSTRING_LEN 1018 string.c return INT2NUM(RSTRING_LEN(str)); RSTRING_LEN 1034 string.c if (RSTRING_LEN(str) == 0) RSTRING_LEN 1057 string.c str3 = rb_str_new(0, RSTRING_LEN(str1)+RSTRING_LEN(str2)); RSTRING_LEN 1058 string.c memcpy(RSTRING_PTR(str3), RSTRING_PTR(str1), RSTRING_LEN(str1)); RSTRING_LEN 1059 string.c memcpy(RSTRING_PTR(str3) + RSTRING_LEN(str1), RSTRING_LEN 1060 string.c RSTRING_PTR(str2), RSTRING_LEN(str2)); RSTRING_LEN 1061 string.c RSTRING_PTR(str3)[RSTRING_LEN(str3)] = '\0'; RSTRING_LEN 1090 string.c if (len && LONG_MAX/len < RSTRING_LEN(str)) { RSTRING_LEN 1094 string.c str2 = rb_str_new5(str, 0, len *= RSTRING_LEN(str)); RSTRING_LEN 1096 string.c n = RSTRING_LEN(str); RSTRING_LEN 1104 string.c RSTRING_PTR(str2)[RSTRING_LEN(str2)] = '\0'; RSTRING_LEN 1160 string.c long len = RSTRING_LEN(str); RSTRING_LEN 1215 string.c else if (RSTRING(str)->as.heap.aux.capa != RSTRING_LEN(str)) { RSTRING_LEN 1216 string.c RESIZE_CAPA(str, RSTRING_LEN(str)); RSTRING_LEN 1258 string.c if (!s || RSTRING_LEN(str) != strlen(s)) { RSTRING_LEN 1406 string.c if (RSTRING_LEN(str) == beg + len && RSTRING_LEN 1426 string.c char *p, *s = RSTRING_PTR(str), *e = s + RSTRING_LEN(str); RSTRING_LEN 1429 string.c if (!RSTRING_LEN(str)) { RSTRING_LEN 1433 string.c if (beg > RSTRING_LEN(str)) return Qnil; RSTRING_LEN 1435 string.c beg += RSTRING_LEN(str); RSTRING_LEN 1438 string.c if (beg + len > RSTRING_LEN(str)) RSTRING_LEN 1439 string.c len = RSTRING_LEN(str) - beg; RSTRING_LEN 1450 string.c if (-beg * rb_enc_mbmaxlen(enc) < RSTRING_LEN(str) / 8) { RSTRING_LEN 1498 string.c if (len > RSTRING_EMBED_LEN_MAX && beg + len == RSTRING_LEN(str)) { RSTRING_LEN 1563 string.c slen = RSTRING_LEN(str); RSTRING_LEN 1610 string.c capa = RSTRING(str)->as.heap.aux.capa = RSTRING_LEN(str); RSTRING_LEN 1618 string.c if (RSTRING_LEN(str) >= LONG_MAX - len) { RSTRING_LEN 1621 string.c total = RSTRING_LEN(str)+len; RSTRING_LEN 1635 string.c memcpy(RSTRING_PTR(str) + RSTRING_LEN(str), ptr, len); RSTRING_LEN 1710 string.c if (RSTRING_LEN(str) == 0) { RSTRING_LEN 1808 string.c rb_enc_cr_str_buf_cat(str, RSTRING_PTR(str2), RSTRING_LEN(str2), RSTRING_LEN 1824 string.c if (RSTRING_LEN(str2) > 0 && STR_ASSOC_P(str)) { RSTRING_LEN 1825 string.c long len = RSTRING_LEN(str)+RSTRING_LEN(str2); RSTRING_LEN 1832 string.c RSTRING_PTR(str2), RSTRING_LEN(str2)+1); RSTRING_LEN 1865 string.c int pos = RSTRING_LEN(str1); RSTRING_LEN 2026 string.c return rb_memhash((const void *)RSTRING_PTR(str), RSTRING_LEN(str)) ^ e; RSTRING_LEN 2035 string.c if (RSTRING_LEN(str1) == (len = RSTRING_LEN(str2)) && RSTRING_LEN 2064 string.c if (RSTRING_LEN(str1) == 0) return Qtrue; RSTRING_LEN 2065 string.c if (RSTRING_LEN(str2) == 0) return Qtrue; RSTRING_LEN 2089 string.c len = lesser(RSTRING_LEN(str1), RSTRING_LEN(str2)); RSTRING_LEN 2092 string.c if (RSTRING_LEN(str1) == RSTRING_LEN(str2)) { RSTRING_LEN 2100 string.c if (RSTRING_LEN(str1) > RSTRING_LEN(str2)) return 1; RSTRING_LEN 2130 string.c if (RSTRING_LEN(str1) == (len = RSTRING_LEN(str2)) && RSTRING_LEN 2147 string.c if (TYPE(str2) != T_STRING || RSTRING_LEN(str1) != RSTRING_LEN(str2)) RSTRING_LEN 2152 string.c lesser(RSTRING_LEN(str1), RSTRING_LEN(str2))) == 0) RSTRING_LEN 2274 string.c if (RSTRING_LEN(str1) == RSTRING_LEN(str2)) return INT2FIX(0); RSTRING_LEN 2275 string.c if (RSTRING_LEN(str1) > RSTRING_LEN(str2)) return INT2FIX(1); RSTRING_LEN 2299 string.c e = s + RSTRING_LEN(str); RSTRING_LEN 2307 string.c slen = RSTRING_LEN(sub); RSTRING_LEN 2308 string.c len = RSTRING_LEN(str) - offset; RSTRING_LEN 2419 string.c slen = RSTRING_LEN(sub); RSTRING_LEN 2758 string.c str = rb_str_new5(orig, RSTRING_PTR(orig), RSTRING_LEN(orig)); RSTRING_LEN 2761 string.c if (RSTRING_LEN(str) == 0) return str; RSTRING_LEN 2765 string.c s = e = sbeg + RSTRING_LEN(str); RSTRING_LEN 2809 string.c RESIZE_CAPA(str, RSTRING_LEN(str) + carry_len); RSTRING_LEN 2811 string.c memmove(s + carry_len, s, RSTRING_LEN(str) - carry_pos); RSTRING_LEN 2813 string.c STR_SET_LEN(str, RSTRING_LEN(str) + carry_len); RSTRING_LEN 2814 string.c RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 2874 string.c if (RSTRING_LEN(beg) == 1 && RSTRING_LEN(end) == 1 && RSTRING_LEN 2899 string.c if (RSTRING_LEN(current) > RSTRING_LEN(end) || RSTRING_LEN(current) == 0) RSTRING_LEN 2926 string.c if (!NIL_P(str) && RSTRING_LEN(str) == 0) return Qnil; RSTRING_LEN 3027 string.c long olen = RSTRING_LEN(str), nlen; RSTRING_LEN 3054 string.c if (beg == 0 && RSTRING_LEN(val) == 0) { RSTRING_LEN 3061 string.c if (len < RSTRING_LEN(val)) { RSTRING_LEN 3063 string.c RESIZE_CAPA(str, RSTRING_LEN(str) + RSTRING_LEN(val) - len + 1); RSTRING_LEN 3066 string.c if (RSTRING_LEN(val) != len) { RSTRING_LEN 3067 string.c memmove(RSTRING_PTR(str) + beg + RSTRING_LEN(val), RSTRING_LEN 3069 string.c RSTRING_LEN(str) - (beg + len)); RSTRING_LEN 3071 string.c if (RSTRING_LEN(val) < beg && len < 0) { RSTRING_LEN 3072 string.c MEMZERO(RSTRING_PTR(str) + RSTRING_LEN(str), char, -len); RSTRING_LEN 3074 string.c if (RSTRING_LEN(val) > 0) { RSTRING_LEN 3075 string.c memmove(RSTRING_PTR(str)+beg, RSTRING_PTR(val), RSTRING_LEN(val)); RSTRING_LEN 3077 string.c STR_SET_LEN(str, RSTRING_LEN(str) + RSTRING_LEN(val) - len); RSTRING_LEN 3079 string.c RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 3397 string.c char *p = RSTRING_PTR(str); long len = RSTRING_LEN(str); RSTRING_LEN 3417 string.c RSTRING_LEN(str)-end0, str_enc) != ENC_CODERANGE_7BIT) { RSTRING_LEN 3437 string.c if (RSTRING_LEN(repl) > plen) { RSTRING_LEN 3438 string.c RESIZE_CAPA(str, RSTRING_LEN(str) + RSTRING_LEN(repl) - plen); RSTRING_LEN 3440 string.c if (RSTRING_LEN(repl) != plen) { RSTRING_LEN 3441 string.c memmove(RSTRING_PTR(str) + beg0 + RSTRING_LEN(repl), RSTRING_LEN 3443 string.c RSTRING_LEN(str) - beg0 - plen); RSTRING_LEN 3446 string.c RSTRING_PTR(repl), RSTRING_LEN(repl)); RSTRING_LEN 3447 string.c STR_SET_LEN(str, RSTRING_LEN(str) + RSTRING_LEN(repl) - plen); RSTRING_LEN 3448 string.c RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 3537 string.c blen = RSTRING_LEN(str) + 30; /* len + margin */ RSTRING_LEN 3540 string.c slen = RSTRING_LEN(str); RSTRING_LEN 3584 string.c if (RSTRING_LEN(str) <= end0) break; RSTRING_LEN 3590 string.c if (offset > RSTRING_LEN(str)) break; RSTRING_LEN 3593 string.c if (RSTRING_LEN(str) > offset) { RSTRING_LEN 3594 string.c rb_enc_str_buf_cat(dest, cp, RSTRING_LEN(str) - offset, str_enc); RSTRING_LEN 3685 string.c len = RSTRING_LEN(str2); RSTRING_LEN 3764 string.c pos += RSTRING_LEN(str); RSTRING_LEN 3765 string.c if (pos < 0 || RSTRING_LEN(str) <= pos) RSTRING_LEN 3785 string.c if (pos < -RSTRING_LEN(str) || RSTRING_LEN(str) <= pos) RSTRING_LEN 3788 string.c pos += RSTRING_LEN(str); RSTRING_LEN 3812 string.c if (RSTRING_LEN(str) <= 1) return rb_str_dup(str); RSTRING_LEN 3814 string.c rev = rb_str_new5(str, 0, RSTRING_LEN(str)); RSTRING_LEN 3818 string.c if (RSTRING_LEN(str) > 1) { RSTRING_LEN 3835 string.c STR_SET_LEN(rev, RSTRING_LEN(str)); RSTRING_LEN 3861 string.c if (RSTRING_LEN(str) > 1) { RSTRING_LEN 4120 string.c p = RSTRING_PTR(str); pend = p + RSTRING_LEN(str); RSTRING_LEN 4162 string.c p = RSTRING_PTR(str); pend = p + RSTRING_LEN(str); RSTRING_LEN 4440 string.c if (RSTRING_LEN(str) == 0 || !RSTRING_PTR(str)) return Qnil; RSTRING_LEN 4606 string.c if (RSTRING_LEN(str) == 0 || !RSTRING_PTR(str)) return Qnil; RSTRING_LEN 4607 string.c if (RSTRING_LEN(repl) == 0) { RSTRING_LEN 4620 string.c trsrc.p = RSTRING_PTR(src); trsrc.pend = trsrc.p + RSTRING_LEN(src); RSTRING_LEN 4621 string.c if (RSTRING_LEN(src) > 1 && RSTRING_LEN 4628 string.c trrepl.pend = trrepl.p + RSTRING_LEN(repl); RSTRING_LEN 4678 string.c int clen, tlen, max = RSTRING_LEN(str); RSTRING_LEN 4745 string.c int clen, tlen, max = RSTRING_LEN(str) * 1.2; RSTRING_LEN 4859 string.c tr.p = RSTRING_PTR(str); tr.pend = tr.p + RSTRING_LEN(str); RSTRING_LEN 4862 string.c if (RSTRING_LEN(str) > 1 && rb_enc_ascget(tr.p, tr.pend, &l, enc) == '^') { RSTRING_LEN 4940 string.c if (RSTRING_LEN(str) == 0 || !RSTRING_PTR(str)) return Qnil; RSTRING_LEN 5051 string.c if (!s || RSTRING_LEN(str) == 0) return Qnil; RSTRING_LEN 5089 string.c if (t - RSTRING_PTR(str) != RSTRING_LEN(str)) { RSTRING_LEN 5198 string.c if (!s || RSTRING_LEN(str) == 0) return INT2FIX(0); RSTRING_LEN 5285 string.c if (RSTRING_LEN(str) == 0) RSTRING_LEN 5306 string.c if (RSTRING_LEN(spat) == 0) { RSTRING_LEN 5312 string.c if (RSTRING_LEN(spat) == 1 && RSTRING_PTR(spat)[0] == ' '){ RSTRING_LEN 5319 string.c RSTRING_LEN(spat) == l) { RSTRING_LEN 5370 string.c int slen = RSTRING_LEN(spat); RSTRING_LEN 5439 string.c if (RSTRING_LEN(str) > 0 && (!NIL_P(limit) || RSTRING_LEN(str) > beg || lim < 0)) { RSTRING_LEN 5440 string.c if (RSTRING_LEN(str) == beg) RSTRING_LEN 5443 string.c tmp = rb_str_subseq(str, beg, RSTRING_LEN(str)-beg); RSTRING_LEN 5449 string.c (tmp = RARRAY_PTR(result)[len-1], RSTRING_LEN(tmp) == 0)) RSTRING_LEN 5537 string.c pend = p + RSTRING_LEN(str); RSTRING_LEN 5538 string.c len = RSTRING_LEN(str); RSTRING_LEN 5564 string.c rslen = RSTRING_LEN(rs); RSTRING_LEN 5643 string.c for (i=0; i<RSTRING_LEN(str); i++) { RSTRING_LEN 5686 string.c len = RSTRING_LEN(str); RSTRING_LEN 5736 string.c len = RSTRING_LEN(str); RSTRING_LEN 5755 string.c end = beg + RSTRING_LEN(str); RSTRING_LEN 5778 string.c if (RSTRING_LEN(str) > 0) { RSTRING_LEN 5834 string.c len = RSTRING_LEN(str); RSTRING_LEN 5865 string.c if (RSTRING_LEN(str) > 0 && RSTRING_LEN 5866 string.c RSTRING_PTR(str)[RSTRING_LEN(str)-1] == '\r') { RSTRING_LEN 5877 string.c RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 5886 string.c rslen = RSTRING_LEN(rs); RSTRING_LEN 5893 string.c if (len < RSTRING_LEN(str)) { RSTRING_LEN 5917 string.c STR_SET_LEN(str, RSTRING_LEN(str) - rslen); RSTRING_LEN 5918 string.c RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 5973 string.c if (!s || RSTRING_LEN(str) == 0) return Qnil; RSTRING_LEN 5985 string.c memmove(RSTRING_PTR(str), s, RSTRING_LEN(str)); RSTRING_LEN 5986 string.c RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0'; RSTRING_LEN 6034 string.c if (!s || RSTRING_LEN(str) == 0) return Qnil; RSTRING_LEN 6134 string.c if (RSTRING_LEN(str) > END(0)) RSTRING_LEN 6194 string.c char *p = RSTRING_PTR(str); long len = RSTRING_LEN(str); RSTRING_LEN 6293 string.c if (RSTRING_LEN(salt) < 2) RSTRING_LEN 6404 string.c len = RSTRING_LEN(str); RSTRING_LEN 6458 string.c flen = RSTRING_LEN(pad); RSTRING_LEN 6471 string.c res = rb_str_new5(str, 0, RSTRING_LEN(str)+n*flen/fclen+2); RSTRING_LEN 6491 string.c memcpy(p, RSTRING_PTR(str), RSTRING_LEN(str)); RSTRING_LEN 6492 string.c p+=RSTRING_LEN(str); RSTRING_LEN 6621 string.c if (pos == 0 && RSTRING_LEN(sep) == 0) goto failed; RSTRING_LEN 6625 string.c rb_str_subseq(str, pos+RSTRING_LEN(sep), RSTRING_LEN 6626 string.c RSTRING_LEN(str)-pos-RSTRING_LEN(sep))); RSTRING_LEN 6645 string.c long pos = RSTRING_LEN(str); RSTRING_LEN 6671 string.c rb_str_substr(str,pos+str_strlen(sep,STR_ENC_GET(sep)),RSTRING_LEN(str))); RSTRING_LEN 6690 string.c if (RSTRING_LEN(str) < RSTRING_LEN(tmp)) continue; RSTRING_LEN 6691 string.c if (memcmp(RSTRING_PTR(str), RSTRING_PTR(tmp), RSTRING_LEN(tmp)) == 0) RSTRING_LEN 6715 string.c if (RSTRING_LEN(str) < RSTRING_LEN(tmp)) continue; RSTRING_LEN 6717 string.c e = p + RSTRING_LEN(str); RSTRING_LEN 6718 string.c s = e - RSTRING_LEN(tmp); RSTRING_LEN 6721 string.c if (memcmp(s, RSTRING_PTR(tmp), RSTRING_LEN(tmp)) == 0) RSTRING_LEN 6869 string.c str = rb_enc_str_new(0, RSTRING_LEN(sym)+1, enc); RSTRING_LEN 6871 string.c memcpy(RSTRING_PTR(str)+1, RSTRING_PTR(sym), RSTRING_LEN(sym)); RSTRING_LEN 6872 string.c if (RSTRING_LEN(sym) != strlen(RSTRING_PTR(sym)) || RSTRING_LEN 432 time.c if (RSTRING_LEN(s) == 3 && RSTRING_LEN 2136 time.c len = RSTRING_LEN(format); RSTRING_LEN 2282 time.c if (RSTRING_LEN(str) != 8) { RSTRING_LEN 2320 time.c len = RSTRING_LEN(submicro); RSTRING_LEN 1743 transcode.c long dlen = RSTRING_LEN(dst); RSTRING_LEN 1769 transcode.c return rb_econv_substr_append(ec, src, 0, RSTRING_LEN(src), dst, flags); RSTRING_LEN 1781 transcode.c return rb_econv_substr_append(ec, src, 0, RSTRING_LEN(src), Qnil, flags); RSTRING_LEN 2379 transcode.c RSTRING_LEN(replacement), RSTRING_LEN 2496 transcode.c slen = RSTRING_LEN(str); RSTRING_LEN 3412 transcode.c if (!NIL_P(input) && output_bytesize < RSTRING_LEN(input)) RSTRING_LEN 3413 transcode.c output_bytesize = RSTRING_LEN(input); RSTRING_LEN 3419 transcode.c output_byteoffset = RSTRING_LEN(output); RSTRING_LEN 3424 transcode.c if (RSTRING_LEN(output) < output_byteoffset) RSTRING_LEN 3445 transcode.c is = ip + RSTRING_LEN(input); RSTRING_LEN 3734 transcode.c ret = rb_econv_insert_output(ec, (const unsigned char *)RSTRING_PTR(string), RSTRING_LEN(string), insert_enc); RSTRING_LEN 3878 transcode.c RSTRING_LEN(string), RSTRING_LEN 282 util.c if (RSTRING_LEN(str) > 1000) RSTRING_LEN 284 util.c RSTRING_LEN(str)); RSTRING_LEN 288 util.c slen = RSTRING_LEN(str); RSTRING_LEN 335 util.c memcpy(RSTRING_PTR(str), buf, RSTRING_LEN(str)); RSTRING_LEN 759 vm_eval.c if (!NIL_P(mesg) && TYPE(mesg) == T_STRING && !RSTRING_LEN(mesg)) {