Re: g_ascii_strup|down
- From: "Matthias Clasen" <matthiasc poet de>
- To: <gtk-devel-list gnome org>
- Subject: Re: g_ascii_strup|down
- Date: Fri, 7 Sep 2001 14:51:49 +0200
Yes, I discovered that. Here is what I wrote in Havoc's defect:
Ok, after some mail archive and doc study, I found out that
this was a conscious decision:
gchar *g_strup (gchar *)
modifies in place
gchar *g_utf8_strup (const gchar *, gsize len)
allocates and operates like a 'n' variant
gchar *g_ascii_strup (const gchar *)
allocates
I still think this is unfortunate.
If you want to align g_ascii_strup with g_utf8_strup rather
than with g_strup, it should get the additional gsize parameter
in order to make s/g_strup/g_ascii_strup/g kind of conversion fail
at compile-time. Ideally, the copying variants with the len
parameter would be called _strnup / _strndown to to follow the
established naming convention for length-checking string functions.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]