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
3ab1afa0
Commit
3ab1afa0
authored
Jan 29, 2013
by
Masaki Muranaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove API mrb_str_catf().
parent
0410bb76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
include/mruby/string.h
include/mruby/string.h
+0
-1
src/string.c
src/string.c
+0
-22
No files found.
include/mruby/string.h
View file @
3ab1afa0
...
...
@@ -68,7 +68,6 @@ int mrb_str_offset(mrb_state *mrb, mrb_value str, int pos);
mrb_value
mrb_str_dup
(
mrb_state
*
mrb
,
mrb_value
str
);
/* mrb_str_dup */
mrb_value
mrb_str_intern
(
mrb_state
*
mrb
,
mrb_value
self
);
mrb_value
mrb_str_cat2
(
mrb_state
*
mrb
,
mrb_value
str
,
const
char
*
ptr
);
mrb_value
mrb_str_catf
(
mrb_state
*
mrb
,
mrb_value
str
,
const
char
*
format
,
...);
mrb_value
mrb_str_to_inum
(
mrb_state
*
mrb
,
mrb_value
str
,
int
base
,
int
badcheck
);
double
mrb_str_to_dbl
(
mrb_state
*
mrb
,
mrb_value
str
,
int
badcheck
);
mrb_value
mrb_str_to_str
(
mrb_state
*
mrb
,
mrb_value
str
);
...
...
src/string.c
View file @
3ab1afa0
...
...
@@ -6,7 +6,6 @@
#include "mruby.h"
#include <stdarg.h>
#include <string.h>
#include "mruby/string.h"
#include <ctype.h>
...
...
@@ -2854,27 +2853,6 @@ mrb_str_cat2(mrb_state *mrb, mrb_value str, const char *ptr)
return
mrb_str_cat
(
mrb
,
str
,
ptr
,
strlen
(
ptr
));
}
static
mrb_value
mrb_str_vcatf
(
mrb_state
*
mrb
,
mrb_value
str
,
const
char
*
fmt
,
va_list
ap
)
{
mrb_string_value
(
mrb
,
&
str
);
mrb_str_resize
(
mrb
,
str
,
(
char
*
)
RSTRING_END
(
str
)
-
RSTRING_PTR
(
str
));
return
str
;
}
mrb_value
mrb_str_catf
(
mrb_state
*
mrb
,
mrb_value
str
,
const
char
*
format
,
...)
{
va_list
ap
;
va_start
(
ap
,
format
);
str
=
mrb_str_vcatf
(
mrb
,
str
,
format
,
ap
);
va_end
(
ap
);
return
str
;
}
mrb_value
mrb_str_append
(
mrb_state
*
mrb
,
mrb_value
str
,
mrb_value
str2
)
{
...
...
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