Searched refs:RSTRING_LEN (Results 1 - 25 of 92) sorted by relevance

1234

/macosx-10.10.1/ruby-106/ruby/ext/-test-/string/
H A Denc_str_buf_cat.c7 return rb_enc_str_buf_cat(str, RSTRING_PTR(str2), RSTRING_LEN(str2), rb_enc_get(str2));
H A Dcstr.c9 len = RSTRING_LEN(str);
H A Dqsort.c36 l = RSTRING_LEN(str);
/macosx-10.10.1/swig-12/Lib/ruby/
H A Dprogargcargv.i24 $1[i] = (char *)malloc(RSTRING_LEN(v) + 1);
H A Djstring.i14 jsize len = RSTRING_LEN(obj);
H A Drubystrings.swg15 size_t size = RSTRING_LEN(obj) + 1;
/macosx-10.10.1/ruby-106/ruby/
H A Dstring.c93 long n = RSTRING_LEN(str);\
106 memcpy(tmp, RSTRING_PTR(str), RSTRING_LEN(str));\
108 RSTRING(str)->as.heap.len = RSTRING_LEN(str);\
296 if (RSTRING_LEN(dest) == 0) {
333 cr = coderange_scan(RSTRING_PTR(str), RSTRING_LEN(str), enc);
354 if (RSTRING_PTR(s) != p || RSTRING_LEN(s) != len){
515 len = RSTRING_LEN(str);
640 if (RSTRING_LEN(str) <= RSTRING_EMBED_LEN_MAX) {
642 memcpy(RSTRING_PTR(str2), RSTRING_PTR(str), RSTRING_LEN(str)+1);
643 STR_SET_EMBED_LEN(str2, RSTRING_LEN(st
[all...]
H A Dpack.c386 pend = p + RSTRING_LEN(fmt);
398 if (RSTRING_PTR(fmt) + RSTRING_LEN(fmt) != pend) {
488 plen = RSTRING_LEN(from);
882 plen = RSTRING_LEN(res);
889 len -= RSTRING_LEN(res);
921 plen = RSTRING_LEN(from);
958 if (RSTRING_LEN(from) < len) {
960 RSTRING_LEN(from), len);
1015 if (RSTRING_LEN(buf)) {
1017 bufe = bufs + RSTRING_LEN(bu
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/readline/
H A Dreadline.c220 len = RSTRING_LEN(prompt);
803 result[i + 1] = (char*)malloc(RSTRING_LEN(temp) + 1);
1034 if (RSTRING_LEN(str) == 0) {
1096 ALLOC_N(char, RSTRING_LEN(str) + 1);
1099 REALLOC_N(basic_word_break_characters, char, RSTRING_LEN(str) + 1);
1102 RSTRING_PTR(str), RSTRING_LEN(str));
1103 basic_word_break_characters[RSTRING_LEN(str)] = '\0';
1157 ALLOC_N(char, RSTRING_LEN(str) + 1);
1160 REALLOC_N(completer_word_break_characters, char, RSTRING_LEN(str) + 1);
1163 RSTRING_PTR(str), RSTRING_LEN(st
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/socket/
H A Dancdata.c310 RSTRING_LEN(data) == sizeof(struct timeval)) {
319 RSTRING_LEN(data) == sizeof(struct timespec)) {
332 RSTRING_LEN(data) == sizeof(struct bintime)) {
390 if (RSTRING_LEN(data) != sizeof(int))
391 rb_raise(rb_eTypeError, "size differ. expected as sizeof(int)=%d but %ld", (int)sizeof(int), (long)RSTRING_LEN(data));
437 if (RSTRING_LEN(v_addr) != sizeof(sa))
447 if (RSTRING_LEN(v_spec_dst) != sizeof(sa))
494 RSTRING_LEN(data) != sizeof(struct in_pktinfo)) {
543 if (RSTRING_LEN(v_addr) != sizeof(sa))
570 RSTRING_LEN(dat
[all...]
H A Doption.c182 if (RSTRING_LEN(data) != sizeof(int))
184 (int)sizeof(int), (long)RSTRING_LEN(data));
228 if (RSTRING_LEN(data) != sizeof(int))
230 (int)sizeof(int), (long)RSTRING_LEN(data));
283 if (RSTRING_LEN(data) != sizeof(l))
285 (int)sizeof(struct linger), (long)RSTRING_LEN(data));
299 if (RSTRING_LEN(data) == sizeof(int)) {
313 if (RSTRING_LEN(data) == sizeof(int)) {
330 if (RSTRING_LEN(data) == sizeof(int)) {
346 if (RSTRING_LEN(dat
[all...]
H A Dinit.c77 return (VALUE)sendto(arg->fd, RSTRING_PTR(mesg), RSTRING_LEN(mesg),
86 return (VALUE)send(arg->fd, RSTRING_PTR(mesg), RSTRING_LEN(mesg),
101 return (VALUE)recvfrom(arg->fd, RSTRING_PTR(arg->str), RSTRING_LEN(arg->str),
138 if (RBASIC(str)->klass || RSTRING_LEN(str) != buflen) {
144 if (slen < RSTRING_LEN(str)) {
220 if (slen < RSTRING_LEN(str)) {
H A Dconstants.c33 if (str_to_int(ptr, RSTRING_LEN(arg), &ret) == -1)
H A Dsocket.c1015 else if (RSTRING_LEN(addr) == 16) {
1233 if (sizeof(ss) < (size_t)RSTRING_LEN(sa)) {
1236 memcpy(&ss, RSTRING_PTR(sa), RSTRING_LEN(sa));
1237 if ((size_t)RSTRING_LEN(sa) != SS_LEN(&ss)) {
1386 if (RSTRING_LEN(addr) <
1428 if (sizeof(sockaddr.sun_path) < (size_t)RSTRING_LEN(path)) {
1430 (size_t)RSTRING_LEN(path), sizeof(sockaddr.sun_path));
1432 memcpy(sockaddr.sun_path, RSTRING_PTR(path), RSTRING_LEN(path));
1458 if (RSTRING_LEN(addr) <
1466 if (sizeof(struct sockaddr_un) < (size_t)RSTRING_LEN(add
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/json/fbuffer/
H A Dfbuffer.h24 #ifndef RSTRING_LEN
25 #define RSTRING_LEN(string) RSTRING(string)->len macro
127 unsigned long len = RSTRING_LEN(str);
/macosx-10.10.1/ruby-106/ruby/ext/stringio/
H A Dstringio.c101 long rlen = RSTRING_LEN(str) - pos;
443 if (ptr->pos < RSTRING_LEN(ptr->string)) return Qfalse;
601 offset += RSTRING_LEN(ptr->string);
645 while (ptr->pos < RSTRING_LEN(ptr->string)) {
678 if (ptr->pos >= RSTRING_LEN(ptr->string)) {
698 if (ptr->pos >= RSTRING_LEN(ptr->string)) {
711 olen = RSTRING_LEN(ptr->string);
757 if (RSTRING_LEN(ptr->string) < ptr->pos) {
758 long len = RSTRING_LEN(ptr->string);
802 cl = RSTRING_LEN(
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/digest/bubblebabble/
H A Dbubblebabble.c37 digest_len = RSTRING_LEN(str_digest);
/macosx-10.10.1/ruby-106/ruby/ext/openssl/
H A Dossl_hmac.c106 HMAC_Update(ctx, (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data));
202 (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len);
224 (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len);
H A Dossl_pkey.c285 EVP_SignUpdate(&ctx, RSTRING_PTR(data), RSTRING_LEN(data));
289 assert((long)buf_len <= RSTRING_LEN(str));
327 EVP_VerifyUpdate(&ctx, RSTRING_PTR(data), RSTRING_LEN(data));
H A Dossl_cipher.c225 if (EVP_MAX_IV_LENGTH > RSTRING_LEN(init_v)) {
227 memcpy(iv, RSTRING_PTR(init_v), RSTRING_LEN(init_v));
315 if(RSTRING_LEN(vsalt) != PKCS5_SALT_LEN)
371 assert(out_len < RSTRING_LEN(str));
402 assert(out_len <= RSTRING_LEN(str));
444 if (RSTRING_LEN(key) < EVP_CIPHER_CTX_key_length(ctx))
476 if (RSTRING_LEN(iv) < EVP_CIPHER_CTX_iv_length(ctx))
/macosx-10.10.1/ruby-106/ruby/ext/digest/
H A Ddigest.c96 digest_len = RSTRING_LEN(str_digest);
366 if (RSTRING_LEN(str1) == RSTRING_LEN(str2) &&
390 return INT2NUM(RSTRING_LEN(digest));
590 algo->update_func(pctx, (unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str));
/macosx-10.10.1/ruby-106/ruby/ext/zlib/
H A Dzlib.c418 sum = checksum_long(func, sum, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str));
652 if (RSTRING_LEN(z->buf) - z->buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) {
704 if (RSTRING_LEN(z->buf) - z->buf_filled >= ZSTREAM_AVAIL_OUT_STEP_MAX) {
744 if (RSTRING_LEN(z->buf) < z->buf_filled + len) {
762 zstream_append_buffer((z),(Bytef*)RSTRING_PTR(v),RSTRING_LEN(v))
816 buflen = RSTRING_LEN(z->buf) - z->buf_filled;
828 if (NIL_P(z->buf) || RSTRING_LEN(z->buf) - z->buf_filled == 0) {
845 if (NIL_P(z->buf) || RSTRING_LEN(z->buf) - z->buf_filled == 0) {
875 zstream_append_input((z), (Bytef*)RSTRING_PTR(v), RSTRING_LEN(v))
880 if (NIL_P(z->input) || RSTRING_LEN(
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/json/generator/
H A Dgenerator.c130 const UTF8 *sourceEnd = source + RSTRING_LEN(string);
228 unsigned long len = RSTRING_LEN(string), start = 0, end = 0;
524 len = RSTRING_LEN(tmp);
532 len = RSTRING_LEN(tmp);
540 len = RSTRING_LEN(tmp);
548 len = RSTRING_LEN(tmp);
556 len = RSTRING_LEN(tmp);
607 long key_len = RSTRING_LEN(key);
894 long string_len = RSTRING_LEN(string);
1019 len = RSTRING_LEN(inden
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/date/
H A Ddate_parse.c87 if (!NIL_P(d) && RSTRING_LEN(d) > 2) {
119 if (*s == '\'' || RSTRING_LEN(m) > 2) {
135 if (*s == '\'' || RSTRING_LEN(d) > 2) {
428 l = RSTRING_LEN(str);
460 sl = RSTRING_LEN(str) - (sizeof STD - 1);
462 dl = RSTRING_LEN(str) - (sizeof DST - 1);
479 dl = RSTRING_LEN(str) - (sizeof DST - 1);
548 a = ALLOCA_N(char, RSTRING_LEN(str) + 1);
564 long cl = RSTRING_LEN(str);
600 RSTRING_LEN(sig
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/dbm/
H A Ddbm.c26 # define RSTRING_DSIZE(s) RSTRING_LEN(s)
253 len = RSTRING_LEN(keystr);
318 len = RSTRING_LEN(valstr);
326 if ((long)val.dsize == RSTRING_LEN(valstr) &&
416 len = RSTRING_LEN(keystr);
511 key.dsize = (DSIZE_TYPE)RSTRING_LEN(keystr);
848 len = RSTRING_LEN(keystr);
875 len = RSTRING_LEN(valstr);
883 if ((DSIZE_TYPE)val.dsize == (DSIZE_TYPE)RSTRING_LEN(valstr) &&

Completed in 162 milliseconds

1234