mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
added this function
2001-03-19 Havoc Pennington <hp@redhat.com> * gutf8.c (g_unichar_validate): added this function
This commit is contained in:
committed by
Havoc Pennington
parent
3b2f870fdf
commit
fad8693b76
16
gutf8.c
16
gutf8.c
@@ -1414,4 +1414,18 @@ g_utf8_validate (const gchar *str,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* g_unichar_validate:
|
||||
* @ch: a Unicode character
|
||||
*
|
||||
* Checks whether @ch is a valid Unicode character. Some possible
|
||||
* integer values of @ch will not be valid. 0 is considered a valid
|
||||
* character, though it's normally a string terminator.
|
||||
*
|
||||
* Return value: %TRUE if @ch is a valid Unicode character
|
||||
**/
|
||||
gboolean
|
||||
g_unichar_validate (gunichar ch)
|
||||
{
|
||||
return UNICODE_VALID (ch);
|
||||
}
|
||||
|
Reference in New Issue
Block a user