mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
string-contains should return a string-cursor
This commit is contained in:
parent
7b88bdca36
commit
dba286d130
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ sexp sexp_string_contains (sexp ctx, sexp self, sexp_sint_t n, sexp x, sexp y) {
|
|||
sexp_assert_type(ctx, sexp_stringp, SEXP_STRING, x);
|
||||
sexp_assert_type(ctx, sexp_stringp, SEXP_STRING, y);
|
||||
res = strstr(sexp_string_data(x), sexp_string_data(y));
|
||||
return res ? sexp_make_fixnum(res-sexp_string_data(x)) : SEXP_FALSE;
|
||||
return res ? sexp_make_string_cursor(res-sexp_string_data(x)) : SEXP_FALSE;
|
||||
}
|
||||
|
||||
sexp sexp_string_cursor_copy (sexp ctx, sexp self, sexp_sint_t n, sexp dst, sexp sfrom, sexp src, sexp sstart, sexp send) {
|
||||
|
|
Loading…
Add table
Reference in a new issue