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

Contains common operations needed while decoding.
Datei anzeigen Open project: remobjects/internetpack

Public Methods

Method 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 method

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

ParseCharsetToEncoding() public static method

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

RemoveQuotesIfAny() public static method

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

SplitStringWithCharNotInsideQuotes() public static method

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
return List