mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
Correct g_utf8_to_utf16 docs
As pointed out in bug 580932, len is counting bytes here.
This commit is contained in:
parent
2dfce32422
commit
79ef3d3264
@ -1357,7 +1357,7 @@ g_utf16_to_ucs4 (const gunichar2 *str,
|
|||||||
/**
|
/**
|
||||||
* g_utf8_to_utf16:
|
* g_utf8_to_utf16:
|
||||||
* @str: a UTF-8 encoded string
|
* @str: a UTF-8 encoded string
|
||||||
* @len: the maximum length (number of characters) of @str to use.
|
* @len: the maximum length (number of bytes) of @str to use.
|
||||||
* If @len < 0, then the string is nul-terminated.
|
* If @len < 0, then the string is nul-terminated.
|
||||||
* @items_read: location to store number of bytes read, or %NULL.
|
* @items_read: location to store number of bytes read, or %NULL.
|
||||||
* If %NULL, then %G_CONVERT_ERROR_PARTIAL_INPUT will be
|
* If %NULL, then %G_CONVERT_ERROR_PARTIAL_INPUT will be
|
||||||
|
Loading…
Reference in New Issue
Block a user