Beef Corlib
Classes | Static Public Member Functions | Static Public Attributes | List of all members
System.Text.UTF8 Class Reference

Classes

struct  DecodeError
 

Static Public Member Functions

static int GetEncodedLength (char32 c)
 
static int GetDecodedLength (char8 *buf)
 
static int GetDecodedLength (char8 firstChar)
 
static Result<(char32, int32), DecodeErrorTryDecode (char8 *buf, int bufSize)
 
static int Encode (char32 c, Span< char8 > dest)
 
static void Encode (char32 c, ref char8 *dest)
 

Static Public Attributes

const int8[256] sTrailingBytesForUTF8
 
const uint32[6] sOffsetsFromUTF8
 
static char32 c
 

Member Data Documentation

◆ sOffsetsFromUTF8

const uint32 [6] System.Text.UTF8.sOffsetsFromUTF8
static
Initial value:
=
.(
0x00000000, 0x00003080, 0x000E2080,
0x03C82080, 0xFA082080, 0x82082080
)

◆ sTrailingBytesForUTF8

const int8 [256] System.Text.UTF8.sTrailingBytesForUTF8
static
Initial value:
=
.(
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
)