Re: utf8 stristr
- From: John K Luebs <jkluebs luebsphoto com>
- To: Michal Adamczak <pokryfka druid if uj edu pl>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: utf8 stristr
- Date: Sun, 30 Mar 2003 12:16:35 -0500
On Sun, Mar 30, 2003 at 06:05:42PM +0200, Michal Adamczak wrote:
i wanted to make caseinensitive utf8 string comparison
g_utf8_casefold in glib will convert UTF-8 encoded strings into a form
usable for comparison and collation.
are there any functions to operate on utf8 strings ?
especially utf8 tolower/toupper
g_utf8_strdown/strup.
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.
--jkl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]