tryParseXmlEncodingDeclarationAscii
fn
string tryParseXmlEncodingDeclarationAscii(const(ubyte)[] bytes) @safeAttempts to parse the XML declaration encoding='...' pseudo-attribute from raw bytes.
This is used for single-byte encodings where the XML declaration itself can be parsed as ASCII.
Parameters
bytes | Input byte sequence. |
Returns
The declared encoding label if present, otherwise an empty string.