summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
AgeCommit message (Collapse)Author
2014-04-29define `resize_capa` as a functioncremno
This increases readability and maintainability, and it also doesn't use reserved identifiers.
2014-04-27rename `mrb_str_buf_append` to `mrb_str_cat_str`cremno
The new name is better and less confusing, because: - `mrb_str_append` calls `mrb_str_to_str` and this function doesn't - `mrb_str_buf_append` _is_ `mrb_str_cat` for `mrb_value` strings
2014-04-25better integer size assertion suggested by usakYukihiro "Matz" Matsumoto
2014-04-25eliminate plain int except for a few cases like arena_indexYukihiro "Matz" Matsumoto
2014-04-25remove -Wsign-compare warningsYukihiro "Matz" Matsumoto
2014-04-21remove `mrb_str_buf_cat`cremno
It does the same as `mrb_str_cat`.
2014-04-17Use mrb_regexp_p to check regexp.take_cheeze
2014-04-16Move src/re.h to include/mruby/re.h .take_cheeze
2014-04-15resolve conflictYukihiro "Matz" Matsumoto
2014-04-12mrb_str_dup use sheard string instead of new stringksss
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