Next: , Previous: , Up: strings compar   [Index]


25.6.2 String dictionary comparison

Dictionary comparison is like lexicographic string comparison, but white space characters in the string arguments are ignored; for example, the string ‘foo 4bar\t3za\nb10’ is equivalent to ‘foo4bar3zab10’. Recognised white spaces are:

#\space         #\tab           #\vtab
#\linefeed      #\return        #\page
Function: string-dictionary-compare str1 str2
Function: %string-dictionary-compare str1 str2

Compare the string arguments and return a ternary result: ‘-1’ if str1 is less than str2, ‘0’ if str1 is equal to str2, ‘+1’ if str1 is greater than str2. The comparison is case sensitive.

Function: string-dictionary=? str1 str2
Function: string-dictionary<>? str1 str2
Function: string-dictionary<? str1 str2
Function: string-dictionary<=? str1 str2
Function: string-dictionary>? str1 str2
Function: string-dictionary>=? str1 str2
Function: %string-dictionary=? str1 str2
Function: %string-dictionary<>? str1 str2
Function: %string-dictionary<? str1 str2
Function: %string-dictionary<=? str1 str2
Function: %string-dictionary>? str1 str2
Function: %string-dictionary>=? str1 str2

Return #t or #f, whether the string-dictionary arguments comply with the predicate.

Function: string-dictionary-compare-ci str1 str2
Function: %string-dictionary-compare-ci str1 str2

Compare the string arguments and return a ternary result: ‘-1’ if str1 is less than str2, ‘0’ if str1 is equal to str2, ‘+1’ if str1 is greater than str2. The comparison is case insensitive.

Function: string-dictionary-ci=? str1 str2
Function: string-dictionary-ci<>? str1 str2
Function: string-dictionary-ci<? str1 str2
Function: string-dictionary-ci>? str1 str2
Function: string-dictionary-ci<=? str1 str2
Function: string-dictionary-ci>=? str1 str2
Function: %string-dictionary-ci=? str1 str2
Function: %string-dictionary-ci<>? str1 str2
Function: %string-dictionary-ci<? str1 str2
Function: %string-dictionary-ci>? str1 str2
Function: %string-dictionary-ci<=? str1 str2
Function: %string-dictionary-ci>=? str1 str2

Return #t or #f, whether the string arguments comply with the predicate. The comparison is case insensitive.


Next: , Previous: , Up: strings compar   [Index]