URIHandlerT.uriProtocolIsValid

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.

template URIHandlerT(TStruct)
static
bool
uriProtocolIsValid
(
string protocol
)

Parameters

protocol string

A string

Return: %TRUE if the string is a valid protocol identifier, %FALSE otherwise.

Meta