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
3af128c7
Commit
3af128c7
authored
Mar 12, 2013
by
Masaki Muranaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mrb_str_sublen() as it is not used.
parent
46d8c517
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
include/mruby/string.h
include/mruby/string.h
+0
-1
src/string.c
src/string.c
+0
-9
No files found.
include/mruby/string.h
View file @
3af128c7
...
...
@@ -55,7 +55,6 @@ mrb_value mrb_str_buf_cat(mrb_state *mrb, mrb_value str, const char *ptr, int le
char
*
mrb_string_value_cstr
(
mrb_state
*
mrb
,
mrb_value
*
ptr
);
char
*
mrb_string_value_ptr
(
mrb_state
*
mrb
,
mrb_value
ptr
);
int
mrb_str_sublen
(
mrb_state
*
mrb
,
mrb_value
str
,
int
pos
);
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
);
...
...
src/string.c
View file @
3af128c7
...
...
@@ -1661,15 +1661,6 @@ mrb_str_rindex(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos)
}
}
#ifdef INCLUDE_ENCODING
/* byte offset to char offset */
int
mrb_str_sublen
(
mrb_state
*
mrb
,
mrb_value
str
,
long
pos
)
{
return
pos
;
}
#endif //INCLUDE_ENCODING
/* 15.2.10.5.31 */
/*
* call-seq:
...
...
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