summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
AgeCommit message (Expand)Author
2017-08-22`strlen` returns `size_t`; need to cast before assigning to `int`.Yukihiro "Matz" Matsumoto
2017-08-22(Try to) fix mixture of `int` and `size_t` in UTF-8 conversion.Yukihiro "Matz" Matsumoto
2017-08-18`mrb_str_cat`: `capa` should not be zero to avoid infinite loops.Yukihiro "Matz" Matsumoto
2017-08-18`mrb_str_cat`: `capa` should be bigger than `total`.Yukihiro "Matz" Matsumoto
2017-08-18`ARY_CAPA` handles capacity for embedded arrays by itself.Yukihiro "Matz" Matsumoto
2017-08-18Separate `mrb_str_buf_new` and `mrb_str_new_capa`.Yukihiro "Matz" Matsumoto
2017-08-18Remove code duplication in `mrb_str_concat`.Yukihiro "Matz" Matsumoto
2017-08-18Merge `str_buf_cat` and `mrb_str_cat`.Yukihiro "Matz" Matsumoto
2017-08-11Silence integer type conversion warnings.Yukihiro "Matz" Matsumoto
2017-08-09Replaced tabs with spacesChristopher Aue
2017-07-28Added mrb_str_index to the mrb APIChristopher Aue
2017-07-12Use "$!" specifier of `mrb_get_args`.Yukihiro "Matz" Matsumoto
2017-07-05Avoid undefined behavior of signed integer overflow; fix #3728Yukihiro "Matz" Matsumoto
2017-05-13Make string embad from sharedksss
2017-05-05Adjust to the optimum typeksss
2017-04-06Make String#replace to check equality before modifying flags.Yukihiro "Matz" Matsumoto
2017-04-03Unify `else` clause styleYukihiro "Matz" Matsumoto
2017-04-03String#initialize to make a string empty; ref #3574Yukihiro "Matz" Matsumoto
2017-03-05String#index shouldn't return nil when "".index ""ksss
2017-02-28Fix integer overflow; fix #3473Yukihiro "Matz" Matsumoto
2017-02-28Add type check by mrb_get_args(); ref #3476Yukihiro "Matz" Matsumoto
2017-02-28Add check before calling str_substr(); ref #3476Yukihiro "Matz" Matsumoto
2017-02-28Check if the value is fixnum before mrb_funcall(); fix #3476Yukihiro "Matz" Matsumoto
2017-02-11Revert "Optimization for String#* for 1-byte strings"Tomasz Dabrowski
2017-02-11String#replace should update s->flags for MRB_STR_NO_UTF.Yukihiro "Matz" Matsumoto
2017-02-11Add type cast to pacify warningYukihiro "Matz" Matsumoto
2017-02-10Optimization for String#* for 1-byte stringsTomasz Dabrowski
2017-02-07Fix interpolation escaping in String.inspectEdgar Boda-Majer
2017-01-23Changed the behavior of mrb_range_beg_len(); close #3411Yukihiro "Matz" Matsumoto
2017-01-23Should not make empty strings shared; fix #3407Yukihiro "Matz" Matsumoto
2017-01-11String#replace should check replacing string; fix #3374Yukihiro "Matz" Matsumoto
2017-01-06Improve capacity enhancing conditionsYukihiro "Matz" Matsumoto
2017-01-06Add pointer cast to pacify warnings.Yukihiro "Matz" Matsumoto
2017-01-06Move mrb_assert() position.Yukihiro "Matz" Matsumoto
2017-01-06Should not deallocate shared string referring static; fix #3373Yukihiro "Matz" Matsumoto
2017-01-02Fix memory error on str_buf_catksss
2017-01-02Small refactoring: should use RSTR_CAPAksss
2016-12-31str_buf_cat(): better size check added; ref #3342Yukihiro "Matz" Matsumoto
2016-12-31str_buf_cat(): should allocate at least RSTRING_EMBED_LEN_MAX+1.Yukihiro "Matz" Matsumoto
2016-12-25Merge pull request #3364 from ksss/string2Yukihiro "Matz" Matsumoto
2016-12-23Check overflow string lengthksss
2016-12-23Do nothing when empty stringksss
2016-12-15Fix crash when exponent is -2147483648Clayton Smith
2016-12-13Add assertion to make sure new capacity does not overflow.Yukihiro "Matz" Matsumoto
2016-12-13Make sure str->capa is under MRB_INT_MAX; fix #3342Yukihiro "Matz" Matsumoto
2016-12-12rename prefix RBASIC_ to MRB_; ref #3340Yukihiro "Matz" Matsumoto
2016-12-11Implement Object#freezeTakashi Kokubun
2016-12-08Removed unnecessary const macro - const keyword is already a dependencyFelix Jones
2016-12-08disable define const on VSYasuhiro Matsumoto
2016-12-07Removed the errno declaration from string.cFelix Jones