Home | History | Annotate | Download | only in gio

Lines Matching refs:decoded

67 static char *       _g_encode_uri       (GDecodedUri *decoded);
68 static void _g_decoded_uri_free (GDecodedUri *decoded);
500 _g_decoded_uri_free (GDecodedUri *decoded)
502 if (decoded == NULL)
505 g_free (decoded->scheme);
506 g_free (decoded->query);
507 g_free (decoded->fragment);
508 g_free (decoded->userinfo);
509 g_free (decoded->host);
510 g_free (decoded->path);
511 g_free (decoded);
528 GDecodedUri *decoded;
560 decoded = _g_decoded_uri_new ();
562 decoded->scheme = g_malloc (p - uri);
563 out = decoded->scheme;
577 decoded->query = g_strndup (query_start, fragment_start - query_start);
578 decoded->fragment = g_strdup (fragment_start+1);
582 decoded->query = g_strdup (query_start);
583 decoded->fragment = NULL;
589 decoded->query = NULL;
594 decoded->fragment = g_strdup (fragment_start);
599 decoded->fragment = NULL;
633 decoded->userinfo = unescape_string (userinfo_start, userinfo_end, NULL);
634 if (decoded->userinfo == NULL)
636 _g_decoded_uri_free (decoded);
649 decoded->port = atoi(port_start);
654 decoded->port = -1;
657 decoded->host = g_strndup (host_start, host_end - host_start);
662 decoded->path = unescape_string (hier_part_start, hier_part_end, "/");
664 if (decoded->path == NULL)
666 _g_decoded_uri_free (decoded);
670 return decoded;
719 _g_encode_uri (GDecodedUri *decoded)
725 g_string_append (uri, decoded->scheme);
728 if (decoded->host != NULL)
730 if (decoded->userinfo)
733 g_string_append_encoded (uri, decoded->userinfo, SUB_DELIM_CHARS ":");
737 g_string_append (uri, decoded->host);
739 if (decoded->port != -1)
742 g_string_append_printf (uri, "%d", decoded->port);
746 g_string_append_encoded (uri, decoded->path, SUB_DELIM_CHARS ":@/");
748 if (decoded->query)
751 g_string_append (uri, decoded->query);
754 if (decoded->fragment)
757 g_string_append (uri, decoded->fragment);