Beispiel #1
0
 protected string NormalizeLine([NotNull] GlobalContext globalContext, [CanBeNull] string line,
                                [CanBeNull] Dictionary <string, string> configValueCollector, ValuesFrame localVars)
 {
     if (line != null)
     {
         int commentStart = line.IndexOf("//", StringComparison.InvariantCulture);
         if (commentStart >= 0)
         {
             line = line.Substring(0, commentStart);
         }
         return(globalContext.ExpandDefinesAndHexChars(localVars.ExpandDefines(line.Trim(), null), configValueCollector).Trim());
     }
     else
     {
         return(null);
     }
 }