uriTemplateApplyPrefix

private fnstring uriTemplateApplyPrefix(string s, uint maxLen) @safe

Apply the RFC 6570 prefix modifier to s.

The prefix length is measured in Unicode characters, with the additional constraint that the result must not split a %HH triplet if the input contains percent-encoded sequences.

Parameters

sInput string.
maxLenMaximum length in characters.

Returns

The prefix of s respecting the constraints above.