Parse a single given settings-file.
Definition at line 36 of file AVR_SettingsParser.cs. 46 //First we remove all the comments (From hashtag to newline. TODO: Does this even work on Linux/MAC?
49 //This regex splits the input at whitespaces, only if they are followed by an even number of quotation marks. See: https://stackoverflow.com/questions/25477562/split-java-string-by-space-and-not-by-double-quotation-that-includes-space
50 List<string> tokens = new List<string>(Regex.Split(content, "(?<!\\G\\S{0,99999}[\"'].{0,99999})\\s|(?<=\\G\\S{0,99999}\".{0,99999}\"\\S{0,99999})\\s|(?<=\\G\\S{0,99999}'.{0,99999}'\\S{0,99999})\\s"));
static int parseDepth(string context, int i, List< string > content, Dictionary< string, string > entries) Definition: AVR_SettingsParser.cs:69 |