mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 19:54:05 +02:00
Make it only accept those characters that we accept i
2006-07-31 Behdad Esfahbod <behdad@gnome.org> * glib/guniprop.c (g_unichar_isxdigit): Make it only accept those characters that we accept i g_unichar_xdigit_value(), i.e. don't accept non-decimal digits. (#347842, Nikolai Weibull)
This commit is contained in:
committed by
Behdad Esfahbod
parent
290443f86f
commit
fafabbb490
@@ -1,3 +1,9 @@
|
|||||||
|
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
|
||||||
|
|
||||||
|
* glib/guniprop.c (g_unichar_isxdigit): Make it only accept those
|
||||||
|
characters that we accept i g_unichar_xdigit_value(), i.e. don't
|
||||||
|
accept non-decimal digits. (#347842, Nikolai Weibull)
|
||||||
|
|
||||||
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
|
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
|
||||||
|
|
||||||
* glib/gunidecomp.c (_g_utf8_normalize_wc): Update to reflect Unicode
|
* glib/gunidecomp.c (_g_utf8_normalize_wc): Update to reflect Unicode
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
|
||||||
|
|
||||||
|
* glib/guniprop.c (g_unichar_isxdigit): Make it only accept those
|
||||||
|
characters that we accept i g_unichar_xdigit_value(), i.e. don't
|
||||||
|
accept non-decimal digits. (#347842, Nikolai Weibull)
|
||||||
|
|
||||||
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
|
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
|
||||||
|
|
||||||
* glib/gunidecomp.c (_g_utf8_normalize_wc): Update to reflect Unicode
|
* glib/gunidecomp.c (_g_utf8_normalize_wc): Update to reflect Unicode
|
||||||
|
@@ -62,11 +62,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define ISDIGIT(Type) IS ((Type), \
|
|
||||||
OR (G_UNICODE_DECIMAL_NUMBER, \
|
|
||||||
OR (G_UNICODE_LETTER_NUMBER, \
|
|
||||||
OR (G_UNICODE_OTHER_NUMBER, 0))))
|
|
||||||
|
|
||||||
#define ISALPHA(Type) IS ((Type), \
|
#define ISALPHA(Type) IS ((Type), \
|
||||||
OR (G_UNICODE_LOWERCASE_LETTER, \
|
OR (G_UNICODE_LOWERCASE_LETTER, \
|
||||||
OR (G_UNICODE_UPPERCASE_LETTER, \
|
OR (G_UNICODE_UPPERCASE_LETTER, \
|
||||||
@@ -337,7 +332,7 @@ g_unichar_isxdigit (gunichar c)
|
|||||||
{
|
{
|
||||||
return ((c >= 'a' && c <= 'f')
|
return ((c >= 'a' && c <= 'f')
|
||||||
|| (c >= 'A' && c <= 'F')
|
|| (c >= 'A' && c <= 'F')
|
||||||
|| ISDIGIT (TYPE (c)));
|
|| (TYPE (c) == G_UNICODE_DECIMAL_NUMBER));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user