Re: utf8 stristr



Look at the section entitled Unicode Manipulation.
In general, strdown/strup are not the correct functions to use for
doing
a case insensitive compare, you should use g_utf8_casefold on the
strings to be compared, and then use the regular g_strcmp function.

according to
http://developer.gnome.org/doc/API/2.2/glib/glib-string-utility-functions.html

there's no g_strstr only g_strstr_len though there are both g_strrstr g_strrstr_len

is there a reason for it?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]