C# Class Portable.Text.ByteEncoding

Inheritance: Portable.Text.MonoEncoding
Show file Open project: jstedfast/Portable.Text.Encoding

Protected Properties

Property Type Description
bodyName string
encodingName string
headerName string
isBrowserDisplay bool
isBrowserSave bool
isMailNewsDisplay bool
isMailNewsSave bool
toChars char[]
webName string
windowsCodePage int

Public Methods

Method Description
GetByteCount ( String s ) : int
GetByteCountImpl ( char chars, int charCount ) : int
GetBytesImpl ( char chars, int charCount, byte bytes, int byteCount ) : int
GetCharCount ( byte bytes, int index, int count ) : int
GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
GetMaxByteCount ( int charCount ) : int
GetMaxCharCount ( int byteCount ) : int
GetString ( byte bytes ) : String
GetString ( byte bytes, int index, int count ) : string
IsAlwaysNormalized ( NormalizationForm form ) : bool

Protected Methods

Method Description
ByteEncoding ( int codePage, char toChars, string encodingName, string bodyName, string headerName, string webName, bool isBrowserDisplay, bool isBrowserSave, bool isMailNewsDisplay, bool isMailNewsSave, int windowsCodePage ) : System
ToBytes ( char chars, int charCount, byte bytes, int byteCount ) : void
ToBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : void

Method Details

ByteEncoding() protected method

protected ByteEncoding ( int codePage, char toChars, string encodingName, string bodyName, string headerName, string webName, bool isBrowserDisplay, bool isBrowserSave, bool isMailNewsDisplay, bool isMailNewsSave, int windowsCodePage ) : System
codePage int
toChars char
encodingName string
bodyName string
headerName string
webName string
isBrowserDisplay bool
isBrowserSave bool
isMailNewsDisplay bool
isMailNewsSave bool
windowsCodePage int
return System

GetByteCount() public method

public GetByteCount ( String s ) : int
s String
return int

GetByteCountImpl() public method

public GetByteCountImpl ( char chars, int charCount ) : int
chars char
charCount int
return int

GetBytesImpl() public method

public GetBytesImpl ( char chars, int charCount, byte bytes, int byteCount ) : int
chars char
charCount int
bytes byte
byteCount 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

GetMaxByteCount() public method

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

GetMaxCharCount() public method

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

GetString() public method

public GetString ( byte bytes ) : String
bytes byte
return String

GetString() public method

public GetString ( byte bytes, int index, int count ) : string
bytes byte
index int
count int
return string

IsAlwaysNormalized() public method

public IsAlwaysNormalized ( NormalizationForm form ) : bool
form NormalizationForm
return bool

ToBytes() protected abstract method

protected abstract ToBytes ( char chars, int charCount, byte bytes, int byteCount ) : void
chars char
charCount int
bytes byte
byteCount int
return void

ToBytes() protected method

protected ToBytes ( char chars, int charIndex, int charCount, byte bytes, int byteIndex ) : void
chars char
charIndex int
charCount int
bytes byte
byteIndex int
return void

Property Details

bodyName protected property

protected string bodyName
return string

encodingName protected property

protected string encodingName
return string

headerName protected property

protected string headerName
return string

isBrowserDisplay protected property

protected bool isBrowserDisplay
return bool

isBrowserSave protected property

protected bool isBrowserSave
return bool

isMailNewsDisplay protected property

protected bool isMailNewsDisplay
return bool

isMailNewsSave protected property

protected bool isMailNewsSave
return bool

toChars protected property

protected char[] toChars
return char[]

webName protected property

protected string webName
return string

windowsCodePage protected property

protected int windowsCodePage
return int