+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
+2001-03-19 Havoc Pennington <hp@redhat.com>
+
+ * gutf8.c (g_unichar_validate): added this function
+
2001-03-18 Tor Lillqvist <tml@iki.fi>
* gspawn-win32.c (SETUP_DEBUG): Add braces to silence gcc -Wall.
gint max_len,
const gchar **end);
+/* Validate a Unicode character */
+gboolean g_unichar_validate (gunichar ch);
+
G_END_DECLS
#endif /* __G_UNICODE_H__ */
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);
+}
gint max_len,
const gchar **end);
+/* Validate a Unicode character */
+gboolean g_unichar_validate (gunichar ch);
+
G_END_DECLS
#endif /* __G_UNICODE_H__ */
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);
+}