C# Class StringFormatEx.Plugins.Core.ParsingServices

Datei anzeigen Open project: qstarin/StringFormatEx

Public Methods

Method Description
SplitNested ( string format, char splitChar ) : string[]

Enhances String.Split by ignoring any characters that are between the nested characters. It also allows you to stop after a certain number of splits. Example: SplitNested("a|b{1|2|3}|c", "|"c) = {"a", "b{1|2|3}", "c"} SplitNested("a|b{1|2|3}|c", "|"c, 2) = {"a", "b{1|2|3}|c"}

SplitNested ( string format, char splitChar, int maxItems ) : string[]

Method Details

SplitNested() public static method

Enhances String.Split by ignoring any characters that are between the nested characters. It also allows you to stop after a certain number of splits. Example: SplitNested("a|b{1|2|3}|c", "|"c) = {"a", "b{1|2|3}", "c"} SplitNested("a|b{1|2|3}|c", "|"c, 2) = {"a", "b{1|2|3}|c"}
public static SplitNested ( string format, char splitChar ) : string[]
format string
splitChar char
return string[]

SplitNested() public static method

public static SplitNested ( string format, char splitChar, int maxItems ) : string[]
format string
splitChar char
maxItems int
return string[]