Beef Corlib
|
Classes | |
struct | DecodeError |
struct | EncodeError |
Public Member Functions | |
abstract int | GetCharUnitSize () |
abstract int | GetEncodedLength (char32 c) |
abstract int | Encode (char32 c, Span< uint8 > dest) |
abstract int | GetMaxCharCount (int size) |
virtual int | GetEncodedSize (StringView str) |
virtual Result< int, EncodeError > | Encode (StringView str, Span< uint8 > dest) |
abstract int | GetDecodedUTF8Size (Span< uint8 > bytes) |
Returns number of UTF8 characters required to hold the decoded result. | |
abstract Result< int, DecodeError > | DecodeToUTF8 (Span< uint8 > inBytes, StringView outChars) |
Decodes from bytes to UTF8. | |
virtual Result< int, DecodeError > | DecodeToUTF8 (Span< uint8 > inBytes, String outStr) |
Decodes from bytes to UTF8. | |
Static Public Member Functions | |
static Encoding | DetectEncoding (Span< uint8 > data, out int bomSize) |
Static Public Attributes | |
static ASCIIEncoding | ASCII => GetEncoding<ASCIIEncoding>(ref sASCII) |
static UTF8Encoding | UTF8 => GetEncoding<UTF8Encoding>(ref sUTF8) |
static UTF8EncodingWithBOM | UTF8WithBOM => GetEncoding<UTF8EncodingWithBOM>(ref sUTF8WithBOM) |
static UTF16Encoding | UTF16 => GetEncoding<UTF16Encoding>(ref sUTF16) |
static UTF16EncodingWithBOM | UTF16WithBOM => GetEncoding<UTF16EncodingWithBOM>(ref sUTF16WithBOM) |