null on error. The returned string should be freed when no longer needed.
Uri.parseScheme
string parseScheme(string uri)Gets the scheme portion of a URI string.
RFC 3986 decodes the schemeas:
URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] Common schemes include file, https, svn+ssh, etc.Parameters
uri | a valid URI. |
Returns
The ‘scheme’ component of the URI, or