public static ParserLine New(string aText) { ParserLine self = new ParserLine(TLineType.ELineTypeSimpleStringMatch); self.OriginalValue = ParserUtils.RemoveLineEndings(aText); return(self); }
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(); }
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); }
internal static ParserLine NewCopy(ParserLine aLine) { ParserLine ret = new ParserLine(aLine); return(ret); }