12345678module juptune.http.uri;
Result uriParseFragment(
const char[] chars,
const char[] fragment,
const char[] next,
UriParseHints hints
);
Parses the fragment of a URI.
fragmentIsEmpty ->
percentEncodedFragment -> #frag%20ment, e.g. "#some%20fragment"
!fragmentIsEmpty -> #fragment, e.g. "#some-fragment"
Given the string "#some-fragment", the fragmentparameter will be set to "some-fragment", and the nextparameter will be set to the empty string.
The output of all outparameters is undefined if the function returns an error.
While percent encoding is validated, it is not decoded.
UriError.fragmentIsInvalidif the fragment contains an invalid character
UriError.fragmentIsInvalidif the fragment contains an invalid percent encoded character
UriError.fragmentIsInvalidif the first character is not '#'
A Resultindicating whether the parsing was successful or not.