C# Class NLog.Internal.StringSplitter

Split a string
Datei anzeigen Open project: NLog/NLog

Public Methods

Method Description
SplitQuoted ( this text, char splitChar, char quoteChar, char escapeChar ) : IEnumerable

Split a string, optional quoted value

SplitWithEscape ( this text, char splitChar, char escapeChar ) : IEnumerable

Split string with escape

SplitWithSelfEscape ( this text, char splitChar ) : IEnumerable

Split string with escape. The escape char is the same as the splitchar

Private Methods

Method Description
GetLastPart ( StringBuilder sb ) : string
SplitQuoted2 ( string text, char splitChar, char quoteChar, char escapeChar ) : IEnumerable
SplitSelfQuoted2 ( string text, char splitChar, char quoteAndEscapeChar ) : IEnumerable
SplitWithEscape2 ( string text, char splitChar, char escapeChar ) : IEnumerable
SplitWithSelfEscape2 ( string text, char splitAndEscapeChar ) : IEnumerable

Method Details

SplitQuoted() public static method

Split a string, optional quoted value
public static SplitQuoted ( this text, char splitChar, char quoteChar, char escapeChar ) : IEnumerable
text this Text to split
splitChar char Character to split the
quoteChar char Quote character
escapeChar char /// Escape for the , not escape for the /// , use quotes for that. ///
return IEnumerable

SplitWithEscape() public static method

Split string with escape
public static SplitWithEscape ( this text, char splitChar, char escapeChar ) : IEnumerable
text this
splitChar char
escapeChar char
return IEnumerable

SplitWithSelfEscape() public static method

Split string with escape. The escape char is the same as the splitchar
public static SplitWithSelfEscape ( this text, char splitChar ) : IEnumerable
text this
splitChar char split char. escaped also with this char
return IEnumerable