public static void AddAllMacros(TregexPatternCompiler compiler, BufferedReader br) { foreach (Pair <string, string> macro in ReadMacros(br)) { compiler.AddMacro(macro.First(), macro.Second()); } }
public static void AddAllMacros(TregexPatternCompiler compiler, string filename, string encoding) { if (filename == null || filename.Equals(string.Empty)) { return; } foreach (Pair <string, string> macro in ReadMacros(filename, encoding)) { compiler.AddMacro(macro.First(), macro.Second()); } }