예제 #1
0
//

/*
 * public Operator before      (            bool match, string chrs)               {if (Part == null) Part = Base; return new Operator(Base, Part.before      (match, 1, chrs));}
 * public Operator upto        (            bool match, string chrs)               {if (Part == null) Part = Base; return new Operator(Base, Part.upto        (match, 1, chrs));}
 * public Operator at          (            bool match, string chrs)               {if (Part == null) Part = Base; return new Operator(Base, Part.at          (match, 1, chrs));}
 * public Operator from        (            bool match, string chrs)               {if (Part == null) Part = Base; return new Operator(Base, Part.from        (match, 1, chrs));}
 * public Operator after       (            bool match, string chrs)               {if (Part == null) Part = Base; return new Operator(Base, Part.after       (match, 1, chrs));}
 */
// ******************* (bool match, int occur, String chrs)
        public Operator Before(bool match, long occur, string chrs)
        {
            if (Part == null)
            {
                Part = Base;
            }
            return(new Operator(Base, Part.Before(match, occur, chrs)));
        }