Re: utf8 stristr
- From: Michal Adamczak <pokryfka druid if uj edu pl>
- To: pokryfka druid if uj edu pl
- Cc: gtk-app-devel-list gnome org
- Subject: Re: utf8 stristr
- Date: Sun, 30 Mar 2003 20:49:14 +0200
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]