C# Class RemObjects.InternetPack.Messages.Mime.Decode.Utility

Contains common operations needed while decoding.
Afficher le fichier Open project: remobjects/internetpack

Méthodes publiques

Méthode Description
GetHeadersValue ( String rawHeader ) : String[]

Separate header name and header value.

ParseCharsetToEncoding ( String characterSet ) : Encoding

Parse a character set into an encoding.

RemoveQuotesIfAny ( String text ) : String

Remove quotes, if found, around the String.

SplitStringWithCharNotInsideQuotes ( String input, char toSplitAt ) : List

Split a String into a list of strings using a specified character.
Everything inside quotes are ignored.

Method Details

GetHeadersValue() public static méthode

Separate header name and header value.
If is
public static GetHeadersValue ( String rawHeader ) : String[]
rawHeader String
Résultat String[]

ParseCharsetToEncoding() public static méthode

Parse a character set into an encoding.
If is
public static ParseCharsetToEncoding ( String characterSet ) : Encoding
characterSet String The character set to parse
Résultat System.Text.Encoding

RemoveQuotesIfAny() public static méthode

Remove quotes, if found, around the String.
If is
public static RemoveQuotesIfAny ( String text ) : String
text String Text with quotes or without quotes
Résultat String

SplitStringWithCharNotInsideQuotes() public static méthode

Split a String into a list of strings using a specified character.
Everything inside quotes are ignored.
public static SplitStringWithCharNotInsideQuotes ( String input, char toSplitAt ) : List
input String A String to split
toSplitAt char The character to use to split with
Résultat List