Companion

object Companion : RecordCompanion<Uri, <Error class: unknown class>>

Functions

Link copied to clipboard
fun build(flags: UriFlags, scheme: String, userinfo: String? = null, host: String? = null, port: Int, path: String, query: String? = null, fragment: String? = null): Uri

Creates a new #GUri from the given components according to @flags.

Link copied to clipboard
fun buildWithUser(flags: UriFlags, scheme: String, user: String? = null, password: String? = null, authParams: String? = null, host: String? = null, port: Int, path: String, query: String? = null, fragment: String? = null): Uri

Creates a new #GUri from the given components according to @flags (%G_URI_FLAGS_HAS_PASSWORD is added unconditionally). The @flags must be coherent with the passed values, in particular use %-encoded values with %G_URI_FLAGS_ENCODED.

Link copied to clipboard
fun errorQuark(): <Error class: unknown class>
Link copied to clipboard
fun escapeString(unescaped: String, reservedCharsAllowed: String? = null, allowUtf8: Boolean): String

Escapes a string for use in a URI.

Link copied to clipboard
fun isValid(uriString: String, flags: UriFlags): <Error class: unknown class><Boolean>

Parses @uri_string according to @flags, to determine whether it is a valid relative-absolute-uris, i.e. it does not need to be resolved relative to another URI using g_uri_parse_relative().

Link copied to clipboard
fun join(flags: UriFlags, scheme: String? = null, userinfo: String? = null, host: String? = null, port: Int, path: String, query: String? = null, fragment: String? = null): String

Joins the given components together according to @flags to create an absolute URI string. @path may not be null (though it may be the empty string).

Link copied to clipboard
fun joinWithUser(flags: UriFlags, scheme: String? = null, user: String? = null, password: String? = null, authParams: String? = null, host: String? = null, port: Int, path: String, query: String? = null, fragment: String? = null): String

Joins the given components together according to @flags to create an absolute URI string. @path may not be null (though it may be the empty string).

Link copied to clipboard

Splits an URI list conforming to the text/uri-list mime type defined in RFC 2483 into individual URIs, discarding any comments. The URIs are not validated.

Link copied to clipboard
fun parse(uriString: String, flags: UriFlags): <Error class: unknown class><Uri>

Parses @uri_string according to @flags. If the result is not a valid relative-absolute-uris, it will be discarded, and an error returned.

Link copied to clipboard
fun parseParams(params: String, length: Long, separators: String, flags: UriParamsFlags): <Error class: unknown class><HashTable>

Many URI schemes include one or more attribute/value pairs as part of the URI value. This method can be used to parse them into a hash table. When an attribute has multiple occurrences, the last value is the final returned value. If you need to handle repeated attributes differently, use #GUriParamsIter.

Link copied to clipboard

Gets the scheme portion of a URI string. RFC 3986 decodes the scheme as: |[ URI = scheme ":" hier-part "#" fragment ]| Common schemes include file, https, svn+ssh, etc.

Link copied to clipboard

Gets the scheme portion of a URI string. RFC 3986 decodes the scheme as: |[ URI = scheme ":" hier-part "#" fragment ]| Common schemes include file, https, svn+ssh, etc.

Link copied to clipboard
fun resolveRelative(baseUriString: String? = null, uriRef: String, flags: UriFlags): <Error class: unknown class><String>

Parses @uri_ref according to @flags and, if it is a relative-absolute-uris, resolves it relative to

Link copied to clipboard
fun unescapeBytes(escapedString: String, length: Long, illegalCharacters: String? = null): <Error class: unknown class><Bytes>

Unescapes a segment of an escaped string as binary data.

Link copied to clipboard
fun unescapeSegment(escapedString: String? = null, escapedStringEnd: String? = null, illegalCharacters: String? = null): String?

Unescapes a segment of an escaped string.

Link copied to clipboard
fun unescapeString(escapedString: String, illegalCharacters: String? = null): String?

Unescapes a whole escaped string.

Link copied to clipboard
open override fun wrapRecordPointer(pointer: <Error class: unknown class><out <Error class: unknown class>>): Uri

Wrap a CPointer pointing to a record of this type into its wrapper class.