mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 06:41:13 +02:00
Docs for substring/read-only.
This commit is contained in:
parent
5dfdf243d2
commit
052567604f
1 changed files with 8 additions and 0 deletions
|
@ -2407,6 +2407,8 @@ strings created by this procedure are called @dfn{mutation sharing
|
||||||
substrings} since the substring and the original string share
|
substrings} since the substring and the original string share
|
||||||
modifications to each other.
|
modifications to each other.
|
||||||
|
|
||||||
|
If you want to prevent modifications, use @code{substring/read-only}.
|
||||||
|
|
||||||
Guile provides all procedures of SRFI-13 and a few more.
|
Guile provides all procedures of SRFI-13 and a few more.
|
||||||
|
|
||||||
@menu
|
@menu
|
||||||
|
@ -2725,9 +2727,15 @@ Like @code{substring}, but the storage for the new string is copied
|
||||||
immediately.
|
immediately.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
@deffn {Scheme Procedure} substring/read-only str start [end]
|
||||||
|
@deffnx {C Function} scm_substring_read_only (str, start, end)
|
||||||
|
Like @code{substring}, but the resulting string can not be modified.
|
||||||
|
@end deffn
|
||||||
|
|
||||||
@deftypefn {C Function} SCM scm_c_substring (SCM str, size_t start, size_t end)
|
@deftypefn {C Function} SCM scm_c_substring (SCM str, size_t start, size_t end)
|
||||||
@deftypefnx {C Function} SCM scm_c_substring_shared (SCM str, size_t start, size_t end)
|
@deftypefnx {C Function} SCM scm_c_substring_shared (SCM str, size_t start, size_t end)
|
||||||
@deftypefnx {C Function} SCM scm_c_substring_copy (SCM str, size_t start, size_t end)
|
@deftypefnx {C Function} SCM scm_c_substring_copy (SCM str, size_t start, size_t end)
|
||||||
|
@deftypefnx {C Function} SCM scm_c_substring_read_only (SCM str, size_t start, size_t end)
|
||||||
Like @code{scm_substring}, etc. but the bounds are given as a @code{size_t}.
|
Like @code{scm_substring}, etc. but the bounds are given as a @code{size_t}.
|
||||||
@end deftypefn
|
@end deftypefn
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue