Name

ccollate

ccollate [-local] string1 string2

Compare two strings and return their collation ordering. Return −1 if string1 is less than string2, 0 if they are equal, and 1 if string1 is greater than string2. With the option -local, compares according to current locale.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.