Comparison was the one thing left out of the charset API from earlier. So here's the API entry:


INTVAL compare(STRING, STRING)

Compares the two strings. Returns 1 if the left side is lexically greater, -1 if the right side is lexically greater, and 0 if they're the same. Currently this is in the charset vtable, but that might change later to allow locale overrides. (It'll be hidden behind the string.c API at least, so that'll be transparent to bytecode)
--
Dan


--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to