Re: utf8 stristr
- From: Owen Taylor <otaylor redhat com>
- To: Michal Adamczak <pokryfka druid if uj edu pl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: utf8 stristr
- Date: 31 Mar 2003 10:14:42 -0500
On Sun, 2003-03-30 at 13:49, Michal Adamczak wrote:
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?
strrstr() is not part of standard C, neither is strstr_len() or
strrstr_len(). However, your C library contains a perfectly good
strstr(), so there is no reason to tack a g_ in front of it.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]