Unicode.utf8_Collate

Compares two strings for ordering using the linguistically correct rules for the current locale. When sorting a large number of strings, it will be significantly faster to obtain collation keys with g_utf8_collate_key() and compare the keys with strcmp() when sorting instead of sorting the original strings.

class Unicode
static
int
utf8_Collate
(
string str1
,
string str2
)

Parameters

str1 string

a UTF-8 encoded string

str2 string

a UTF-8 encoded string

Return Value

Type: int

< 0 if str1 compares before str2, 0 if they compare equal, > 0 if str1 compares after str2.

Meta