Seba Gamboa
649901b75c
Merge doc/api/mruby/string.h.md contents
2015-10-08 12:55:28 -03:00
Seba Gamboa
a0fe0c40b1
Remove old doxygen tags
2015-10-08 12:29:10 -03:00
Seba Gamboa
40bf7bde78
Sorting documentation grouping
2015-09-21 01:48:42 -03:00
Seba Gamboa
c127614638
Setting up doxygen groups
2015-09-20 21:14:07 -03:00
Seba Gamboa
7505bad677
Playing around with some documentations schemes
2015-09-18 23:59:29 -03:00
Yukihiro "Matz" Matsumoto
1a45447b8b
add String#freeze to the core
2015-08-27 17:54:30 +09:00
Yukihiro "Matz" Matsumoto
9e4b012478
Merge pull request #2570 from cubicdaiya/issues/unify_duplicated_functions
...
Unify and rename duplicated functions (noregexp() and regexp_check()).
2014-08-29 01:09:33 +09:00
Tatsuhiko Kubo
5fa30aeaea
Fix mismatches for MRB_API declarations.
2014-08-29 01:06:22 +09:00
Tatsuhiko Kubo
db29a25ada
Rename functions for avoinding symbol confiliction.
...
Add prefix(mrb) to noregexp() and regexp_check().
2014-08-28 19:18:52 +09:00
Tatsuhiko Kubo
d958aa2cb1
Unify duplicated functions (noregexp() and regexp_check()).
2014-08-28 19:13:57 +09:00
Yukihiro "Matz" Matsumoto
fce644df59
Merge pull request #2508 from iij/pr-mrb-str-to-cstr-returns-mutable
...
revert accidental constify.
2014-08-05 16:32:52 +09:00
Tomoyuki Sahara
412b9eb827
revert accidental constify.
2014-08-05 15:02:27 +09:00
Yukihiro "Matz" Matsumoto
db7b01c0b3
turn string obsolete functions into macros
2014-08-04 00:53:58 +09:00
Yukihiro "Matz" Matsumoto
206f89e209
add MRB_API modifiers to mruby API functions
2014-08-04 00:47:08 +09:00
Jun Hiroe
9c259c501a
Add NOFREE macros
2014-06-11 01:00:35 +09:00
Yukihiro "Matz" Matsumoto
32e450166f
move STR_* macros to mruby/string.h with renaming
2014-06-07 22:16:16 +09:00
Yukihiro "Matz" Matsumoto
b1dd57efa1
move IS_EVSTR macro that should be private to src/string.c
2014-06-06 00:19:46 +09:00
cremno
739b155535
remove mrb_str_offset
2014-04-29 07:13:44 +02:00
cremno
91c22f32f4
rename mrb_str_buf_append to mrb_str_cat_str
...
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-27 22:33:22 +02:00
Yukihiro "Matz" Matsumoto
83c1399af0
eliminate plain int except for a few cases like arena_index
2014-04-25 04:01:57 +09:00
cremno
bc23a5e9e5
remove mrb_str_buf_cat
...
It does the same as `mrb_str_cat`.
2014-04-21 21:28:06 +02:00
Yukihiro "Matz" Matsumoto
792c1add0c
string functions arguments changed from mrb_int to size_t that would take strlen()
2014-03-19 00:46:27 +09:00
Yukihiro "Matz" Matsumoto
048bca43c9
string length type to be mrb_int
2014-03-15 15:47:21 +09:00
cremno
e4afd5374f
add mrb_strlen_lit which makes _lit macros safer
...
strlen(3) + string literal is usually optimized but strlen(3) doesn't
check if its argument is really a string literal. This is important for
mruby's _static functions to which some _lit macros are expanded (string
literals have static storage). See comment for some additional info.
remove unnecessary parentheses
2014-03-12 17:56:08 +01:00
Yukihiro "Matz" Matsumoto
6423011986
remove invocation of strlen() on buffer of strings; with refactoring
2014-03-09 02:35:49 +09:00
Masaki Muranaka
270d25bf2d
Make type casts safer.
2014-03-08 15:53:59 +09:00
take_cheeze
c3f3a0484a
use sizeof(void*) instead of mrb_int size and extend embed string size
2014-03-08 00:32:59 +09:00
ksss
54132e4364
make embed string when create literals
2014-03-06 13:47:51 +00:00
ksss
4070b5987a
embed small string
...
use flags 4 for *this object is embed*
use flags 8~64 for *embed string length*
2014-03-06 13:12:08 +00:00
cubicdaiya
6b3801c30d
introduce mrb_str_cat_lit() to create strings from C string litrals
2014-02-26 03:03:00 +09:00
cremno
5a76288f3f
remove mrb_str_literal declaration
...
definition was removed in 677a2ac
2014-02-13 13:39:44 +01:00
cremno
4507985c3e
use mrb_bool, FALSE and TRUE more
...
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-31 18:00:36 +01:00
Yukihiro "Matz" Matsumoto
673d9183cf
avoid copying when the original string comes with MRB_STR_NOFREE
2013-12-25 10:30:48 +09:00
Yukihiro "Matz" Matsumoto
fb386011df
rename API mrb_str_dup_static() -> mrb_str_pool()
2013-11-20 08:37:16 +09:00
Miura Hideki
54c5b12fb7
irep->pool struct pool -> mrb_value
2013-11-19 20:38:02 +09:00
Yukihiro "Matz" Matsumoto
3995e7ff8f
rename voidp to cptr
2013-09-21 17:28:47 +09:00
Tomoyuki Sahara
53ff8172e5
add mrb_string_type().
2013-08-23 15:06:26 +09:00
Yukihiro "Matz" Matsumoto
40e6cdcb5c
rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source
2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki
8dc2fa3bc8
add read barrier to value.p
...
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Jun Hiroe
8e42868600
Repalace int with mrb_bool because a return value is boolean.
2013-07-15 23:17:12 +09:00
Yukihiro "Matz" Matsumoto
a1df3fdb0c
fix mrb_string_shared memory leaks
2013-04-29 07:47:12 +09:00
Yukihiro "Matz" Matsumoto
5077f9ec8b
move mrb_shared_string definition to src/string.c
2013-04-29 07:24:55 +09:00
Yukihiro "Matz" Matsumoto
5c68195c88
mrb_str_new_static(): zero copy string creation
2013-04-28 02:47:22 +09:00
Masaki Muranaka
2613e5d955
Clean up variable types and type casts.
2013-04-21 01:17:17 +09:00
Masaki Muranaka
ff0cd6cabe
Remove useless comments.
2013-04-21 01:17:16 +09:00
h2so5
b9674c735e
Make str_modify public
2013-04-19 08:06:04 +09:00
Masaki Muranaka
05ad6902fd
Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And mrb_string_value() is no merit to keep using.
2013-03-29 18:01:25 +09:00
Yukihiro Matz Matsumoto
0940e4d462
rename mrb_ptr_as_string() to mrb_ptr_to_str()
2013-03-23 21:57:33 +09:00
Masaki Muranaka
bbb367841a
Add new API mrb_ptr_as_string().
2013-03-23 20:00:04 +09:00
Masaki Muranaka
0cedf8fa02
Rename API mrb_str_cat2() to mrb_str_cat_cstr(). This is for naming orthogonality. mrb_str_cat2() is also left for backward compatibility.
2013-03-23 16:29:30 +09:00