示例#1
0
            public string Parse(string s, LogLevel logLevel, CultureInfo cultureUI, SrmDocument.DOCUMENT_TYPE docType)
            {
                if (ParseIndex >= 0 && ParseIndex < PARSE_FUNCTIONS.Length)
                {
                    var parsed = PARSE_FUNCTIONS[ParseIndex](ParseInput, logLevel, cultureUI, docType);
                    if (parsed != null)
                    {
                        return(parsed);
                    }
                }

                return(s.Substring(StartIndex, Length));
            }
示例#2
0
            public string Parse(string s, LogLevel logLevel, CultureInfo cultureInfo)
            {
                if (ParseIndex >= 0 && ParseIndex < PARSE_FUNCTIONS.Length)
                {
                    var parsed = PARSE_FUNCTIONS[ParseIndex](ParseInput, logLevel, cultureInfo);
                    if (parsed != null)
                    {
                        return(parsed);
                    }
                }

                return(s.Substring(StartIndex, Length));
            }