isValidTemplateURIVariableName

Checks if the given literal parameter is valid according to RFC 6570 section 2.3.

@safe
bool
isValidTemplateURIVariableName
(
string varname
,
out size_t errorIndex
)

Return Value

Type: bool

false if invalid with errorIndex set to the first character breaking the validity. Potentially end-of-string index for unterminated percent-encoded characters.

Meta