summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
AgeCommit message (Collapse)Author
2014-04-04simplify string equality checkYukihiro "Matz" Matsumoto
2014-04-03downto, upto, step to return EnumeratorYukihiro "Matz" Matsumoto
2014-03-27an int literal may have multiple underscores insideYukihiro "Matz" Matsumoto
2014-03-27allow underscores in integer literals; close #1960Yukihiro "Matz" Matsumoto
2014-03-25Fix unnecessary string macroksss
2014-03-25Use mrb_int instead of intcubicdaiya
2014-03-24src/string.c RESIZE_CAPA use safe name variablesksss
This has a possibility of naming conflicts
2014-03-22need not to add assertion in STR_SET_LEN() where n is mrb_intYukihiro "Matz" Matsumoto
2014-03-22Use bool-macro instead of magic-numbercubicdaiya
2014-03-19string functions arguments changed from mrb_int to size_t that would take ↵Yukihiro "Matz" Matsumoto
strlen()
2014-03-16unify indent stylecubicdaiya
2014-03-15string length type to be mrb_intYukihiro "Matz" Matsumoto
2014-03-10set bit field for mrb_boolksss
2014-03-09Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-03-08use mrb_str_cat_lit for literalscremno
2014-03-09remove invocation of strlen() on buffer of strings; with refactoringYukihiro "Matz" Matsumoto
2014-03-08Make type casts safer.Masaki Muranaka
2014-03-06make embed string when create literalsksss
2014-03-06embed small stringksss
use flags 4 for *this object is embed* use flags 8~64 for *embed string length*
2014-03-04fix off-by-one error in String#rindex(fixnum)cubicdaiya
null-terminated string should not be included in search targets.
2014-03-04add new macros for MRB_STR_SHARED operations, based on 0f7aecf from @ksss; ↵Yukihiro "Matz" Matsumoto
ref #1782
2014-02-28fix SEGV bug for mrb_str_new_staticcubicdaiya
mrb_str_new_static causes seg-fault when 3rd argument is negative.
2014-02-28fix SEGV bug for mrb_str_newcubicdaiya
mrb_str_new causes seg-fault when 3rd argument is negative.
2014-02-28make mrb_str_dump a bit fastercubicdaiya
2014-02-26use mrb_str_new_lit instead of mrb_str_new for C string literalscubicdaiya
2014-02-09Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUEYukihiro "Matz" Matsumoto
use mrb_bool, FALSE and TRUE more
2014-02-08made mrb_define_class to return existing class, with heavy refactoringYukihiro "Matz" Matsumoto
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
2014-01-31clean up external symbolscremno
remove unused and unneeded: - sysexit_status - type (a global variable) add mrb_ prefix to: - codedump_all - class_instance_method_list - parser_dump make various functions static, incl.: - yyparse - make_exception
2014-01-29move range aware aget to array.c from mruby-array-ext gemYukihiro "Matz" Matsumoto
2014-01-21escape non-ascii characters correctly in String#inspecth2so5
2014-01-07string.c: remove str_mod_checkcremno
Clang 3.4 emits '-Wunused-function' - and it's really unused! But according to the description this seems to be a bug: >Warn whenever a static function is declared but not defined or >a non-inline static function is unused. This warning is enabled by -Wall. Source: <http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html>
2014-01-02Merge pull request #1634 from cremno/use-mrb_fixnum_pYukihiro "Matz" Matsumoto
tiny word boxing optimization
2014-01-02remove various preprocessor conditionalscremno
- HAVE_IEEEFP_H is nowhere defined or needed at all - FreeBSD < 4 is unsupported since years - MSVC workaround (around what exactly?)
2014-01-02tiny word boxing optimizationcremno
2013-12-25avoid copying when the original string comes with MRB_STR_NOFREEYukihiro "Matz" Matsumoto
2013-12-25clear STR_NOFREE flag on modifyYukihiro "Matz" Matsumoto
2013-12-01add mrb_intern_lit for creating symbol from string literaltake_cheeze
2013-11-29rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513Yukihiro "Matz" Matsumoto
2013-11-20rename API mrb_str_dup_static() -> mrb_str_pool()Yukihiro "Matz" Matsumoto
2013-11-19irep->pool struct pool -> mrb_valueMiura Hideki
2013-11-07irep->pool not to be GCedYukihiro "Matz" Matsumoto
2013-09-21index to mrb_digitmap[] should always be positiveYukihiro "Matz" Matsumoto
2013-08-26Merge branch 'mruby' into pr-typeerror-string-start-end-withTomoyuki Sahara
Conflicts: mrbgems/mruby-string-ext/src/string.c mrbgems/mruby-string-ext/test/string.rb
2013-08-24Fix a problem of 'z' option and shared stringh2so5
2013-08-23add mrb_string_type().Tomoyuki Sahara
2013-08-11I fix ISO No in String class in comparison with ↵Jun Hiroe
ISO_IEC_30170_2012(E)-Charactor_PDF_document.pdf
2013-07-23String `=~` and `match` to work with pluggable Regexp; close #1398Yukihiro "Matz" Matsumoto
2013-07-15Repalace int with mrb_bool because a return value is boolean.Jun Hiroe
2013-07-11Replace 0 with '\0' as nul terminated string.Jun Hiroe