SplitQuoted ( string toSplit, char quote, char escape, bool includeEmptyUnquotedSections ) : string[] |
Splits a string in the same way as the System.String.Split() method but with support for special treatment for escaped characters and for quoted sections which won't be split. Escaping supports the following special treatment: - escape is followed by 'n': a new line character is inserted
- escape is followed by 'r': a form feed character is inserted
- escape is followed by 't': a tabulator character is inserted
- escape is followed by 'x': the next two characters are interpreted as a hex code of the character to be inserted
- any other character after the escape is inserted literally
Escaping is applied within and outside of quoted sections. |
|