return null;\r
}\r
\r
+ /// <summary>\r
+ /// Parses a comment of an INI file.\r
+ /// </summary>\r
+ /// <param name="line">Text.</param>\r
+ /// <returns>The comment.</returns>\r
+ public static string IniComment(string line)\r
+ {\r
+ Match match = Regex.Match(line, @"^;\s*(.*)\s*$");\r
+ if (match.Success) return match.Groups[1].Value;\r
+ return null;\r
+ }\r
+\r
/// <summary>\r
/// Parses a key-value pair.\r
/// </summary>\r
// FIXME: This may barf all over itself if there are nested parentheses, doublequotes, brackets, etc.\r
foreach (Match match in matches)\r
{\r
- Console.WriteLine("matched: " + match.Value);\r
list.Add(match.Value);\r
}\r
\r