After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 397127 - ignore case and '-' vs '_' differences when maching on enum/flag nick/name
ignore case and '-' vs '_' differences when maching on enum/flag nick/name
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gobject
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2007-01-16 04:34 UTC by Behdad Esfahbod
Modified: 2018-05-24 10:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2007-01-16 04:34:52 UTC
g_enum/flag_get_value_by_nick/name should ignore case differences and '-' vs '_'.
This just makes a lot of sense.

Maybe even add a glib function that does this kind of comparison.  I need it in pango where I want to do this for markup attribute name matching.
Comment 1 GNOME Infrastructure Team 2018-05-24 10:56:05 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/74.