mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
guri: Change type of g_uri_escape_bytes() to use guint8
`guint8` is the conventional way in modern GLib APIs to represent ‘a byte which could contain arbitrary binary’. `guchar` is not advised for that (even though it’s equivalent) because it could be misread as `gchar`. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
ceda9755de
commit
e446c3487b
@ -2539,7 +2539,7 @@ g_uri_unescape_bytes (const gchar *escaped_string,
|
|||||||
* Since: 2.66
|
* Since: 2.66
|
||||||
*/
|
*/
|
||||||
gchar *
|
gchar *
|
||||||
g_uri_escape_bytes (const guchar *unescaped,
|
g_uri_escape_bytes (const guint8 *unescaped,
|
||||||
gsize length,
|
gsize length,
|
||||||
const gchar *reserved_chars_allowed)
|
const gchar *reserved_chars_allowed)
|
||||||
{
|
{
|
||||||
|
@ -400,7 +400,7 @@ GBytes * g_uri_unescape_bytes (const char *escaped_string,
|
|||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
GLIB_AVAILABLE_IN_2_66
|
GLIB_AVAILABLE_IN_2_66
|
||||||
char * g_uri_escape_bytes (const guchar *unescaped,
|
char * g_uri_escape_bytes (const guint8 *unescaped,
|
||||||
gsize length,
|
gsize length,
|
||||||
const char *reserved_chars_allowed);
|
const char *reserved_chars_allowed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user