Exemplo n.º 1
0
    void is_contents_1_lc()
    {
#if obs
        if (m_line.Contains(G.CONTENTS1))
        {
            var tmplines = StringUtil.ReplaceWordsInLine(m_line, G.CONTENTS1, m_contents1);
            m_resultlist.AddRange(tmplines);
            m_bContinue = true;
        }
#endif
        var match = RegexUtil.Get1stMatch(G.CONTENTS1PTN, m_line);
        if (!string.IsNullOrEmpty(match))
        {
            var macro = string.Empty;
            if (match.Contains("->@"))
            {
                var index = match.IndexOf("->@");
                if (index >= 0)
                {
                    macro = match.Substring(index + 3).Trim('$');
                }
            }
            var replacevalue = G.get_line_macro_value(macro, m_contents1);
            var tmplines     = StringUtil.ReplaceWordsInLine(m_line, match, replacevalue);
            m_resultlist.AddRange(tmplines);
            m_bContinue = true;
        }
    }