mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01: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:
parent
3b2f870fdf
commit
fad8693b76
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2001-03-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* gutf8.c (g_unichar_validate): added this function
|
||||||
|
|
||||||
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
2001-03-18 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
|
||||||
|
@ -243,6 +243,9 @@ gboolean g_utf8_validate (const gchar *str,
|
|||||||
gint max_len,
|
gint max_len,
|
||||||
const gchar **end);
|
const gchar **end);
|
||||||
|
|
||||||
|
/* Validate a Unicode character */
|
||||||
|
gboolean g_unichar_validate (gunichar ch);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __G_UNICODE_H__ */
|
#endif /* __G_UNICODE_H__ */
|
||||||
|
16
glib/gutf8.c
16
glib/gutf8.c
@ -1414,4 +1414,18 @@ g_utf8_validate (const gchar *str,
|
|||||||
return TRUE;
|
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);
|
||||||
|
}
|
||||||
|
@ -243,6 +243,9 @@ gboolean g_utf8_validate (const gchar *str,
|
|||||||
gint max_len,
|
gint max_len,
|
||||||
const gchar **end);
|
const gchar **end);
|
||||||
|
|
||||||
|
/* Validate a Unicode character */
|
||||||
|
gboolean g_unichar_validate (gunichar ch);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __G_UNICODE_H__ */
|
#endif /* __G_UNICODE_H__ */
|
||||||
|
16
gutf8.c
16
gutf8.c
@ -1414,4 +1414,18 @@ g_utf8_validate (const gchar *str,
|
|||||||
return TRUE;
|
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);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user