summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
AgeCommit message (Collapse)Author
2015-12-01preserve original string for error messageYukihiro "Matz" Matsumoto
2015-12-01mrb_str_len_to_inum(): inspect string in error messageYukihiro "Matz" Matsumoto
2015-12-01new API function mrb_string_value_len()Yukihiro "Matz" Matsumoto
2015-12-01mrb_str_to_inum(): should treat null byte in strings properly; fix #3040Yukihiro "Matz" Matsumoto
2015-12-01mrb_cstr_to_inum(): should ignore trailing white spaces even when badcheck setYukihiro "Matz" Matsumoto
2015-12-01mrb_str_to_inum(): should raise error when string contains null byteYukihiro "Matz" Matsumoto
2015-12-01mrb_str_to_inum(): no need to call mrb_string_value_cstr() here; ref 05411eeYukihiro "Matz" Matsumoto
2015-12-01mrb_string_value_cstr() should not raise error for frozen stringsYukihiro "Matz" Matsumoto
cf. http://qiita.com/tsahara@github/items/b2a442af95ac893e10a1 (Japanese).
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-10-20Increasing docs coverageSeba Gamboa
2015-09-29chop with utf-8. fix #2967Yasuhiro Matsumoto
2015-09-27fix String#inspect with MRB_UTF8_STRINGtakahashim
cf. #2963
2015-09-25inspect prints valid UTF-8 character without escapingYukihiro "Matz" Matsumoto
2015-09-25add boundary check to utf8len() to avoid oob memory accessYukihiro "Matz" Matsumoto
2015-09-24UTF-8 string support in coreYukihiro "Matz" Matsumoto
define MRB_UTF8_STRING (in mrbconf.h) to enable UTF-8 support.
2015-09-23String#rindex should no longer take integer argumentYukihiro "Matz" Matsumoto
2015-09-22String#index should no longer take integer argumentYukihiro "Matz" Matsumoto
2015-09-19Fix indentsJun Hiroe
2015-09-11Support windows localeYasuhiro Matsumoto
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free. Just works for windows.
2015-09-03unsigned long may be smaller than mrb_int; use uint64_t instead; fix #2935Yukihiro "Matz" Matsumoto
2015-09-02update string.h.md; ref #2931Yukihiro "Matz" Matsumoto
2015-08-27add String#freeze to the coreYukihiro "Matz" Matsumoto
2015-07-07Merge pull request #2877 from cremno/fix-dangling-ptrYukihiro "Matz" Matsumoto
Coverity: fix dangling pointer
2015-07-05Fix typo in comment in String#mrb_cstr_to_inum [skip ci]Anton Davydov
2015-07-03fix dangling pointercremno
CID 75872 (#3-2 of 3): Pointer to local outside scope (RETURN_LOCAL) 38. use_invalid: Using p, which points to an out-of-scope variable buf.
2015-06-24Remove unnecessary backticks.Franck Verrot
Dr Markus Kuhn published in 1999 an article [1] explaining in details why we shouldn't use the ASCII grave accent (0x60) as a left quotation. Backticks have been used most notably to produce nice-looking LaTeX documents but it doesn't seem to be an issue on modern platforms and for the oldest ones, there are workarounds as mentioned by Dr Kuhn. [1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2015-06-22*Correctly* removing extra mrb_str_to_str callJared Breeden
2015-06-22Reverting overzealous changesJared Breeden
2015-06-22Removing redundant mrb_str_to_str callJared Breeden
2015-06-22Calling mrb_str_to_str in mrb_string_value_cstr. Fixes #2847Jared Breeden
2015-06-19Merge pull request #2839 from yui-knk/fix/string_split_sampleYukihiro "Matz" Matsumoto
[ci skip] Remove some Srting#split samples
2015-06-19[ci skip] Remove some Srting#split samplesyui-knk
mruby not support regexp, so remove these samples.
2015-05-28remove unnecessary including of <ctype.h>cremno
Not needed anymore since 85075bef7583edd0a48cfbdfaa632cbdacf78f2c
2015-05-21remove an always-true conditional.Tomoyuki Sahara
2015-05-20RSTRING_PTR may be changed in while loop.Tomoyuki Sahara
2014-12-27Use suitable type.Tatsuhiko Kubo
2014-12-17String#[]: float handling merged to #2677Yukihiro "Matz" Matsumoto
2014-12-17try to convert not only nil but every objects to fixnums; ref #2677Yukihiro "Matz" Matsumoto
2014-12-17String#[] should reject nil indexh2so5
2014-12-17mrb_str_new(mrb, "", len) creates an unmodifiable string object; ref #2674Yukihiro "Matz" Matsumoto
2014-11-26add "fall through" commentYukihiro "Matz" Matsumoto
2014-11-26fix(String) String#[] accepts float; close #2650 #2651Robert Mosolgo
2014-10-02fixed. cygwin-gcc(ver4.8.3) warning in conv_digit()Hiroyuki Matsuzaki
2014-09-30mrbconf.h option MRB_USE_ETEXT_EDATA to reduce memory.Yukihiro "Matz" Matsumoto
on platforms with _etext and _edata, mruby can distinguish string literals so that it avoids memory allocation to copy them. for example, on my Linux box (x86 32bit), memory consumed by mrbtest decreased from 8,168,203 to 8,078,848 (reduced 88KB).
2014-09-09Add inline to str_with_class().Tatsuhiko Kubo
2014-09-03get rid of shadowing variablescremno
Mostly by renaming the shadowing variable. If a shadowing variable was deleted, the shadowed one can be used instead.
2014-08-29Remove unused macro.Tatsuhiko Kubo
OutOfRange() is no longer used.
2014-08-29Merge pull request #2570 from cubicdaiya/issues/unify_duplicated_functionsYukihiro "Matz" Matsumoto
Unify and rename duplicated functions (noregexp() and regexp_check()).
2014-08-29Fix mismatches for MRB_API declarations.Tatsuhiko Kubo
2014-08-28Rename functions for avoinding symbol confiliction.Tatsuhiko Kubo
Add prefix(mrb) to noregexp() and regexp_check().