C# Class System.Text.SuperEncoding

支持GB2312、BIG5编码
Inheritance: Encoding
Show file Open project: chenrensong/Encoding.UWP 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
GetDecoder ( ) : Decoder
GetEncoding ( string name ) : Encoding

获取Encoding(非BIG5、GB2312编码调用原有的Encoding.GetEncoding)

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

Private Methods

Method Description
GetCharCount ( byte bytes, int index, int count, SuperDecoder decoder ) : int
GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex, SuperDecoder decoder ) : int
SuperEncoding ( ) : System.Collections.Generic

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

GetDecoder() public method

public GetDecoder ( ) : Decoder
return Decoder

GetEncoding() public static method

获取Encoding(非BIG5、GB2312编码调用原有的Encoding.GetEncoding)
public static GetEncoding ( string name ) : Encoding
name string
return Encoding

GetMaxByteCount() public method

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

GetMaxCharCount() public method

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