(guile.info.gz) String Selection
Info Catalog
(guile.info.gz) List/String Conversion
(guile.info.gz) Strings
(guile.info.gz) String Modification
21.4.5 String Selection
-----------------------
Portions of strings can be extracted by these procedures. `string-ref'
delivers individual characters whereas `substring' can be used to
extract substrings from longer strings.
-- Scheme Procedure: string-length string
-- C Function: scm_string_length (string)
Return the number of characters in STRING.
-- Scheme Procedure: string-ref str k
-- C Function: scm_string_ref (str, k)
Return character K of STR using zero-origin indexing. K must be a
valid index of STR.
-- Scheme Procedure: string-copy str
-- C Function: scm_string_copy (str)
Return a newly allocated copy of the given STRING.
-- Scheme Procedure: substring str start [end]
-- C Function: scm_substring (str, start, end)
Return a newly allocated string formed from the characters of STR
beginning with index START (inclusive) and ending with index END
(exclusive). STR must be a string, START and END must be exact
integers satisfying:
0 <= START <= END <= (string-length STR).
Info Catalog
(guile.info.gz) List/String Conversion
(guile.info.gz) Strings
(guile.info.gz) String Modification
automatically generated byinfo2html