Пример #1
0
        public static FunctionMap LoadFunctionMap()
        {
            FunctionMap fm = new FunctionMap();

            fm._fm = new Dictionary <string, AbstractFunction>();
            fm.AddFunction("keyMatch", new KeyMatchFunc());
            fm.AddFunction("keyMatch2", new KeyMatch2Func());
            fm.AddFunction("regexMatch", new RegexMatchFunc());
            fm.AddFunction("ipMatch", new IPMatchFunc());
            return(fm);
        }
Пример #2
0
        public static FunctionMap LoadFunctionMap()
        {
            var map = new FunctionMap
            {
                FunctionDict = new Dictionary <string, AbstractFunction>()
            };

            map.AddFunction("keyMatch", new KeyMatchFunc());
            map.AddFunction("keyMatch2", new KeyMatch2Func());
            map.AddFunction("keyMatch4", new KeyMatch4Func());
            map.AddFunction("regexMatch", new RegexMatchFunc());
            map.AddFunction("ipMatch", new IpMatchFunc());
            return(map);
        }