Next: SRFI-13 Case Mapping, Previous: SRFI-13 Prefixes/Suffixes, Up: SRFI-13
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.
Search through the string s from left to right, returning the index of the first occurence of a character which
- equals char_pred, if it is character,
- satisifies the predicate char_pred, if it is a procedure,
- is in the set char_pred, if it is a character set.
Search through the string s from left to right, returning the index of the first occurence of a character which
- does not equal char_pred, if it is character,
- does not satisify the predicate char_pred, if it is a procedure,
- is not in the set if char_pred is a character set.
Return the count of the number of characters in the string s which
- equals char_pred, if it is character,
- satisifies the predicate char_pred, if it is a procedure.
- is in the set char_pred, if it is a character set.
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.