uri_protocol_is_valid
function uri_protocol_is_valid(protocol:String):Boolean { // Gjs wrapper for gst_uri_protocol_is_valid() }
Tests if the given string is a valid protocol identifier. Protocols must consist of alphanumeric characters, '+', '-' and '.' and must start with a alphabetic character. See RFC 3986 Section 3.1.
- protocol
A string
- Returns
TRUE if the string is a valid protocol identifier, FALSE otherwise.