mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Add not to g_utf8_get_char_validated() about nul-terminated strings.
2007-06-05 Behdad Esfahbod <behdad@gnome.org> * glib/gutf8.c: Add not to g_utf8_get_char_validated() about nul-terminated strings. svn path=/trunk/; revision=5536
This commit is contained in:
committed by
Behdad Esfahbod
parent
bcc342b81b
commit
ed6b059bc2
@@ -755,7 +755,8 @@ g_utf8_get_char_extended (const gchar *p,
|
||||
/**
|
||||
* g_utf8_get_char_validated:
|
||||
* @p: a pointer to Unicode character encoded as UTF-8
|
||||
* @max_len: the maximum number of bytes to read, or -1, for no maximum.
|
||||
* @max_len: the maximum number of bytes to read, or -1, for no maximum or
|
||||
* if @p is nul-terminated
|
||||
*
|
||||
* Convert a sequence of bytes encoded as UTF-8 to a Unicode character.
|
||||
* This function checks for incomplete characters, for invalid characters
|
||||
|
Reference in New Issue
Block a user