C# Class sidepop.Mime.EncodedWords

Handle complexity of parsing a string with multiple encoded word: See RFC2047
Mostrar archivo Open project: Octopus-ITSM/sidepop Class Usage Examples

Public Methods

Method Description
Decode ( ) : void

Decoded and merges all the token from the specified list.

EncodedWords ( string value ) : System

Ctor

Private Methods

Method Description
MergeContiguousCompatibleEncodedTokens ( ) : void

If happens that when having multiple contiguous encoded words (specially binary, an encoded word is splitted on a byte boundary example : C3 A9 represents the à character and the first encoded word can contain the C3 and the second encoded word contains A0. This method with modify the list of tokens so when the same encoding and charset are used for multiple tokens, they will be merge together

NextTokenIsCompatible ( EncodedWord encodedWord, int currentIndex ) : bool

Determines if the next token in the list (if any) match the encoded word regular expression and has the same encoding and charset values

Method Details

Decode() public method

Decoded and merges all the token from the specified list.
public Decode ( ) : void
return void

EncodedWords() public method

Ctor
public EncodedWords ( string value ) : System
value string
return System