C# Class DBCSCodePage.DBCSEncoding

Inheritance: System.Text.Encoding
Mostrar archivo Open project: EdiWang/UWP-Helpers Class Usage Examples

Public Methods

Method Description
GetByteCount ( char chars, int index, int count ) : int
GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int
GetCharCount ( byte bytes, int index, int count ) : int
GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
GetDBCSEncoding ( string name ) : DBCSEncoding

Get Encoding by name (e.g. gb2312)

GetDecoder ( ) : Decoder
GetMaxByteCount ( int charCount ) : int
GetMaxCharCount ( int byteCount ) : int

Private Methods

Method Description
DBCSEncoding ( ) : System
GetCharCount ( byte bytes, int index, int count, DBCSDecoder decoder ) : int
GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex, DBCSDecoder decoder ) : int

Method Details

GetByteCount() public method

public GetByteCount ( char chars, int index, int count ) : int
chars char
index int
count int
return int

GetBytes() public method

public GetBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : int
chars char
charIndex int
charCount int
bytes byte
byteIndex int
return int

GetCharCount() public method

public GetCharCount ( byte bytes, int index, int count ) : int
bytes byte
index int
count int
return int

GetChars() public method

public GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
bytes byte
byteIndex int
byteCount int
chars char
charIndex int
return int

GetDBCSEncoding() public static method

Get Encoding by name (e.g. gb2312)
public static GetDBCSEncoding ( string name ) : DBCSEncoding
name string encoding name
return DBCSEncoding

GetDecoder() public method

public GetDecoder ( ) : Decoder
return System.Text.Decoder

GetMaxByteCount() public method

public GetMaxByteCount ( int charCount ) : int
charCount int
return int

GetMaxCharCount() public method

public GetMaxCharCount ( int byteCount ) : int
byteCount int
return int