mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
In string-split, add support for character sets and predicates.
* libguile/srfi-13.c (string-split): Add support for splitting on character sets and predicates, like string-index and others. * test-suite/tests/strings.test (string-split): Add tests covering the new argument types. * doc/ref/api-data.texi (string-split): Update. Signed-off-by: Mark H Weaver <mhw@netris.org>
This commit is contained in:
parent
8b22ced1c9
commit
5f085775ab
4 changed files with 146 additions and 37 deletions
|
@ -110,7 +110,7 @@ SCM_API SCM scm_xsubstring (SCM s, SCM from, SCM to, SCM start, SCM end);
|
|||
SCM_API SCM scm_string_xcopy_x (SCM target, SCM tstart, SCM s, SCM sfrom, SCM sto, SCM start, SCM end);
|
||||
SCM_API SCM scm_string_replace (SCM s1, SCM s2, SCM start1, SCM end1, SCM start2, SCM end2);
|
||||
SCM_API SCM scm_string_tokenize (SCM s, SCM token_char, SCM start, SCM end);
|
||||
SCM_API SCM scm_string_split (SCM s, SCM chr);
|
||||
SCM_API SCM scm_string_split (SCM s, SCM char_pred);
|
||||
SCM_API SCM scm_string_filter (SCM char_pred, SCM s, SCM start, SCM end);
|
||||
SCM_API SCM scm_string_delete (SCM char_pred, SCM s, SCM start, SCM end);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue