Result!(LevelsResult, TextError): {required, written} with
the capacity protocol above and the resolved base; INVALID_INPUT for a malformed request, backend failures as errors — never as a zero count.
Result!(LevelsResult, TextError) levels(const(dchar)[] paragraph, BidiBase base,
scope ubyte[] outBuf) @safe nothrow @nogcResolves one paragraph into UAX #9 embedding levels.
paragraph | the paragraph text, logical order (UTF-32 code points). |
base | the requested base direction (AUTO per UAX #9 P2/P3). |
outBuf | caller buffer for one level byte per code point. |
Result!(LevelsResult, TextError): {required, written} with
the capacity protocol above and the resolved base; INVALID_INPUT for a malformed request, backend failures as errors — never as a zero count.