Next: String Searching, Previous: String Modification, Up: Strings
The procedures in this section are similar to the character ordering
predicates (see Characters), but are defined on character sequences.
They all return #t on success and #f on failure. The
predicates ending in -ci ignore the character case when comparing
strings.
Lexicographic equality predicate; Return #t if the two strings are the same length and contain the same characters in the same positions, otherwise returns #f. (r5rs)
‘String-ci=?’ treats upper and lower case letters as though they were the same character, but ‘string=?’ treats upper and lower case as distinct characters.
Lexicographic ordering predicate; return #t if s1 is lexicographically less than s2. (r5rs)
Lexicographic ordering predicate; return #t if s1 is lexicographically less than or equal to s2. (r5rs)
Lexicographic ordering predicate; return #t if s1 is lexicographically greater than s2. (r5rs)
Lexicographic ordering predicate; return #t if s1 is lexicographically greater than or equal to s2. (r5rs)
Case-insensitive string equality predicate; return #t if the two strings are the same length and their component characters match (ignoring case) at each position; otherwise returns #f. (r5rs)
Case insensitive lexicographic ordering predicate; return #t if s1 is lexicographically less than s2 regardless of case. (r5rs)
Case insensitive lexicographic ordering predicate; return #t if s1 is lexicographically less than or equal to s2 regardless of case. (r5rs)