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
#tif the two strings s1 and s2 are the same length and contain the same characters in the same positions, otherwise return#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
#tif s1 is lexicographically less than s2. (r5rs)
Lexicographic ordering predicate; return
#tif s1 is lexicographically less than or equal to s2. (r5rs)
Lexicographic ordering predicate; return
#tif s1 is lexicographically greater than s2. (r5rs)
Lexicographic ordering predicate; return
#tif s1 is lexicographically greater than or equal to s2. (r5rs)
Case-insensitive string equality predicate; return
#tif the two strings s1 and s2 are the same length and their component characters match (ignoring case) at each position; eotherwise return#f. (r5rs)
Case insensitive lexicographic ordering predicate; return
#tif s1 is lexicographically less than s2 regardless of case. (r5rs)
Case insensitive lexicographic ordering predicate; return
#tif s1 is lexicographically less than or equal to s2 regardless of case. (r5rs)