(guile.info.gz) SRFI-13 Searching
Info Catalog
(guile.info.gz) SRFI-13 Prefixes/Suffixes
(guile.info.gz) SRFI-13
(guile.info.gz) SRFI-13 Case Mapping
39.11.9 Searching
-----------------
Use these procedures to find out whether a string contains a given
character or a given substring, or a character from a set of characters.
-- Scheme Procedure: string-index s char_pred [start end]
-- Scheme Procedure: string-index-right s char_pred [start end]
Search through the string S from left to right (right to left),
returning the index of the first (last) occurrence of a character
which
* equals CHAR_PRED, if it is character,
* satisfies the predicate CHAR_PRED, if it is a procedure,
* is in the set CHAR_PRED, if it is a character set.
-- Scheme Procedure: string-skip s char_pred [start end]
-- Scheme Procedure: string-skip-right s char_pred [start end]
Search through the string S from left to right (right to left),
returning the index of the first (last) occurrence of a character
which
* does not equal CHAR_PRED, if it is character,
* does not satisfy the predicate CHAR_PRED, if it is a
procedure.
* is not in the set if CHAR_PRED is a character set.
-- Scheme Procedure: string-count s char_pred [start end]
Return the count of the number of characters in the string S which
* equals CHAR_PRED, if it is character,
* satisfies the predicate CHAR_PRED, if it is a procedure.
* is in the set CHAR_PRED, if it is a character set.
-- Scheme Procedure: string-contains s1 s2 [start1 end1 start2 end2]
-- Scheme Procedure: string-contains-ci s1 s2 [start1 end1 start2 end2]
Does string S1 contain string S2? Return the index in S1 where S2
occurs as a substring, or false. The optional start/end indices
restrict the operation to the indicated substrings.
`string-contains-ci' is the case-insensitive variant.
Info Catalog
(guile.info.gz) SRFI-13 Prefixes/Suffixes
(guile.info.gz) SRFI-13
(guile.info.gz) SRFI-13 Case Mapping
automatically generated byinfo2html