Correct g_utf8_to_utf16 docs

As pointed out in bug 580932, len is counting bytes here.
This commit is contained in:
Matthias Clasen 2009-05-02 22:44:52 -04:00
parent 2dfce32422
commit 79ef3d3264

View File

@ -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