compare

(#<widget> 'compare index1 op index2)
Compares the indices given by index1 and index2 according to the relational operator given by op, and returns 1 if the relationship is satisfied and 0 if it isn't.

Op must be one of these operators:

< <= == >= > !=

If op is == then 1 is returned if the two indices refer to the same character, If op is < then 1 is returned if index1 refers to an earlier character in the text than index2, and so on.


© Author | Home | Sitemap