Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
14f0e4a4
Commit
14f0e4a4
authored
Sep 02, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update string.h.md; ref #2931
parent
7ce5b21c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/api/mruby/string.h.md
doc/api/mruby/string.h.md
+1
-1
src/string.c
src/string.c
+2
-2
No files found.
doc/api/mruby/string.h.md
View file @
14f0e4a4
...
...
@@ -69,7 +69,7 @@ Returns a concated string comprised of a Ruby string and a C string.
Returns a concated string comprised of a Ruby string and a C string(A shorter alternative to mrb_str_cat).
### mrb_str_append
```
C
mrb_value mrb_str_append(mrb_state *mrb, mrb_value str, mrb_value str2);
mrb_value mrb_str_append(mrb_state *mrb, mrb_value str
1
, mrb_value str2);
```
Adds str2 to the end of str1.
### mrb_str_cmp
...
...
src/string.c
View file @
14f0e4a4
...
...
@@ -2385,10 +2385,10 @@ mrb_str_cat_str(mrb_state *mrb, mrb_value str, mrb_value str2)
}
MRB_API
mrb_value
mrb_str_append
(
mrb_state
*
mrb
,
mrb_value
str
,
mrb_value
str2
)
mrb_str_append
(
mrb_state
*
mrb
,
mrb_value
str
1
,
mrb_value
str2
)
{
str2
=
mrb_str_to_str
(
mrb
,
str2
);
return
mrb_str_cat_str
(
mrb
,
str
,
str2
);
return
mrb_str_cat_str
(
mrb
,
str
1
,
str2
);
}
#define CHAR_ESC_LEN 13
/* sizeof(\x{ hex of 32bit unsigned int } \0) */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment