uriParseScheme

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.

Return

The ‘scheme’ component of the URI, or null on error. The returned string should be freed when no longer needed.

Since

2.16

Parameters

uri

a valid URI.