In message <[EMAIL PROTECTED]> Simon Cozens <[EMAIL PROTECTED]> wrote:
> I see no tests *or* documentation. Come on, Tom, you should know > better than that. :) Here's the doc patch: Index: strings.pod =================================================================== RCS file: /home/perlcvs/parrot/docs/strings.pod,v retrieving revision 1.4 diff -u -w -r1.4 strings.pod --- strings.pod 2001/10/02 14:01:31 1.4 +++ strings.pod 2001/10/10 07:55:40 @@ -89,6 +89,17 @@ C<*dest> is a null pointer, a new string structure is created with the same encoding as C<src>.) +To compare two strings, use: + + INTVAL string_compare(STRING* s1, STRING* s2) + +The value returned will be less than, equal to, or greater than zero +depending on whether C<s1> is less than, equal to, or greater than C<s2>. + +Strings whose encodings are not the same can be compared - in this +case a UTF-32 copy will be made of each string and these copies will +be compared. + B<Not implemented>: To format output into a string, use Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu