Пример #1
0
        public static ParserLine New(string aText)
        {
            ParserLine self = new ParserLine(TLineType.ELineTypeSimpleStringMatch);

            self.OriginalValue = ParserUtils.RemoveLineEndings(aText);
            return(self);
        }
Пример #2
0
        private ParserLine(ParserLine aLine)
        {
            iLineType      = aLine.LineType;
            iOriginalValue = aLine.OriginalValue;
            iFinalValue    = new StringBuilder(aLine.FinalValue);
            iFlags         = aLine.iFlags;

            foreach (ParserField templateField in aLine)
            {
                ParserField copy = new ParserField(templateField);
                Add(copy);
            }

            CreateRegEx();
        }
Пример #3
0
        public static ParserLine NewSymFormat(string aFormat)
        {
            // First check with cache
            ParserLine self = RegExTranslatorManager.PreCachedCompiledEntry(aFormat);

            if (self == null)
            {
                // Wasn't cached so we need to parse and create a new entry
                self = new ParserLine(TLineType.ELineTypeSymbianFormatString);
                self.OriginalValue = aFormat;
                //
                RegExTranslatorManager.CompileToRegularExpression(self);
            }
            //
            return(self);
        }
Пример #4
0
        internal static ParserLine NewCopy(ParserLine aLine)
        {
            ParserLine ret = new ParserLine(aLine);

            return(ret);
        }