#include "ruby.h"
#include "re.h"
#include <math.h>
#include <ctype.h>
#include <unistd.h>
Go to the source code of this file.
|
|
|
|
|
|
|
|
Definition at line 950 of file string.c. Referenced by rb_str_dump(), and rb_str_inspect(). |
|
|
Definition at line 902 of file string.c. Referenced by rb_str_casecmp(), rb_str_cmp(), and rb_str_eql(). |
|
|
Value: do {\ REALLOC_N(RSTRING(str)->ptr, char, (capacity)+1);\ if (!FL_TEST(str, STR_NOCAPA))\ RSTRING(str)->aux.capa = (capacity);\ } while (0) Definition at line 34 of file string.c. Referenced by rb_str_aset(), rb_str_associate(), rb_str_buf_append(), rb_str_buf_cat(), rb_str_splice(), rb_str_sub_bang(), rb_str_succ(), and str_gsub(). |
|
|
|
|
|
Definition at line 218 of file string.c. Referenced by rb_str_buf_new(). |
|
|
Definition at line 32 of file string.c. Referenced by rb_str_resize(), rb_str_shared_replace(), str_gsub(), and str_make_independent(). |
|
|
Definition at line 30 of file string.c. Referenced by rb_str_locktmp(), rb_str_unlocktmp(), and str_independent(). |
|
|
Definition at line 2958 of file string.c. Referenced by trnext(). |
|
||||||||||||
|
Definition at line 1903 of file string.c. References Check_Type, NIL_P, rb_check_string_type(), rb_reg_quote(), rb_reg_regcomp(), T_REGEXP, T_STRING, TYPE, and VALUE. Referenced by rb_str_match_m(), rb_str_scan(), rb_str_split_m(), rb_str_sub_bang(), and str_gsub(). |
|
|
||||||||||||
|
Definition at line 4008 of file string.c. References NIL_P, rb_lastline_set(), rb_str_chomp_bang(), rb_str_dup(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 3983 of file string.c. References rb_str_chomp_bang(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
|
Definition at line 3843 of file string.c. References rb_lastline_set(), rb_str_chop_bang(), rb_str_dup(), RSTRING, uscore_get(), and VALUE. Referenced by Init_String(). |
|
|
Definition at line 3818 of file string.c. References rb_str_chop_bang(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 2362 of file string.c. References NIL_P, rb_lastline_set(), rb_str_dup(), rb_str_gsub_bang(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 2341 of file string.c. References rb_str_gsub_bang(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 4285 of file string.c. References rb_str_scan(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 3621 of file string.c. References rb_str_split_m(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 2315 of file string.c. References NIL_P, rb_lastline_set(), rb_str_dup(), rb_str_sub_bang(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 2298 of file string.c. References rb_str_sub_bang(), uscore_get(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 1512 of file string.c. References FIX2LONG, INT2FIX, NUM2LONG, OBJ_INFECT, Qfalse, Qnil, rb_range_beg_len(), rb_str_dup(), rb_str_index(), rb_str_subpat(), rb_str_substr(), RSTRING, T_FIXNUM, T_REGEXP, T_STRING, TYPE, and VALUE. Referenced by rb_str_aref_m(). |
|
||||||||||||||||
|
Definition at line 1611 of file string.c. References NUM2INT, NUM2LONG, rb_eArgError, rb_raise(), rb_str_aref(), rb_str_subpat(), rb_str_substr(), T_REGEXP, TYPE, and VALUE. Referenced by Init_String(), and rb_str_slice_bang(). |
|
||||||||||||||||
|
Definition at line 1719 of file string.c. References FIX2INT, FIX2LONG, FIXNUM_P, NUM2LONG, rb_eIndexError, rb_raise(), rb_range_beg_len(), rb_str_index(), rb_str_modify(), rb_str_splice(), rb_str_subpat_set(), RESIZE_CAPA, RSTRING, T_FIXNUM, T_REGEXP, T_STRING, TYPE, and VALUE. Referenced by rb_str_aset_m(). |
|
||||||||||||||||
|
Definition at line 1803 of file string.c. References NUM2INT, NUM2LONG, rb_eArgError, rb_raise(), rb_str_aset(), rb_str_splice(), rb_str_subpat_set(), T_REGEXP, TYPE, and VALUE. Referenced by Init_String(), and rb_str_slice_bang(). |
|
|
Definition at line 239 of file string.c. References rb_str_buf_cat(), rb_str_buf_new(), and VALUE. Referenced by compile_error(), env_inspect(), exc_inspect(), inspect_ary(), inspect_hash(), inspect_struct(), method_inspect(), rb_reg_desc(), rb_reg_to_s(), rb_stat_inspect(), and rb_str_inspect(). |
|
|
Definition at line 2892 of file string.c. References rb_str_capitalize_bang(), rb_str_dup(), and VALUE. Referenced by Init_String(). |
|
|
Definition at line 2852 of file string.c. References ISLOWER, ismbchar, ISUPPER, mbclen, Qnil, rb_str_modify(), RSTRING, and VALUE. Referenced by Init_String(), and rb_str_capitalize(). |
|
||||||||||||
|
Definition at line 1040 of file string.c. References INT2FIX, lesser, rb_memcicmp(), RSTRING, StringValue, and VALUE. Referenced by Init_String(). |
|
||||||||||||||||
|
Definition at line 4596 of file string.c. References rb_str_justify(), and VALUE. Referenced by Init_String(). |
|
||||||||||||||||
|
Definition at line 3957 of file string.c. References rb_str_chomp_bang(), rb_str_dup(), and VALUE. Referenced by Init_String(). |
|
||||||||||||||||
|
Definition at line 3865 of file string.c. References NIL_P, Qnil, rb_default_rs, rb_memcmp(), rb_rs, rb_scan_args(), rb_str_modify(), RSTRING, StringValue, and VALUE. Referenced by Init_String(), rb_f_chomp(), rb_f_chomp_bang(), and rb_str_chomp(). |
|
|
Definition at line 3791 of file string.c. References rb_str_chop_bang(), rb_str_dup(), and VALUE. Referenced by Init_String(). |
|
|
Definition at line 3754 of file string.c. References Qnil, rb_str_modify(), RSTRING, and VALUE. Referenced by Init_String(), rb_f_chop(), rb_f_chop_bang(), and rb_str_chop(). |
|
||||||||||||
|
Definition at line 999 of file string.c. References FIX2LONG, FIXNUM_P, LONG2FIX, LONG2NUM, NIL_P, Qnil, rb_funcall(), rb_intern(), rb_respond_to(), rb_str_cmp(), T_STRING, TYPE, and VALUE. Referenced by Init_String(). |
|
||||||||||||||||
|
Definition at line 3391 of file string.c. References INT2FIX, INT2NUM, rb_eArgError, rb_raise(), RSTRING, StringValue, tr_setup_table(), and VALUE. Referenced by Init_String(). |
|
||||||||||||
|
Definition at line 4347 of file string.c. References crypt(), OBJ_INFECT, rb_eArgError, rb_raise(), rb_str_new2(), RSTRING, StringValue, and VALUE. Referenced by Init_String(). |
|
||||||||||||||||
|
Definition at line 3240 of file string.c. References rb_str_delete_bang(), rb_str_dup(), and VALUE. Referenced by Init_String(). |
|
||||||||||||||||
|
Definition at line 3184 of file string.c. References Qnil, rb_eArgError, rb_raise(), rb_str_modify(), RSTRING, StringValue, tr_setup_table(), and VALUE. Referenced by Init_String(), rb_str_delete(), and tr_trans(). |
|
|
Definition at line 2829 of file string.c. References rb_str_downcase_bang(), rb_str_dup(), and VALUE. Referenced by Init_String(). |
|
|
Definition at line 2793 of file string.c. References ismbchar, ISUPPER, mbclen, Qnil, rb_str_modify(), RSTRING, and VALUE. Referenced by Init_String(), and rb_str_downcase(). |
|
|
Definition at line 3732 of file string.c. References INT2FIX, rb_yield(), RSTRING, and VALUE. Referenced by Init_String(). |
|
||||||||||||||||
|
Definition at line 3662 of file string.c. References NIL_P, OBJ_INFECT, rb_memcmp(), rb_rs, rb_scan_args(), rb_str_new5(), rb_yield(), RSTRING, str_mod_check(), StringValue, and VALUE. Referenced by Init_String(). |
|
|
|