示例#1
0
        public IMatch CreateEmptyMatch()
        {
            var ret = new FCLMatch(this);

            ret.Init(RENS.Match.Empty, 0);
            return(ret);
        }
示例#2
0
        public void CopyFrom(IMatch srcMatch)
        {
            FCLMatch srcImpl = srcMatch as FCLMatch;

            if (srcImpl == null)
            {
                throw new ArgumentException("srcMatch has invalid type", "srcMatch");
            }
            this.match = srcImpl.match;
            srcImpl.groups.CopyTo(this.groups, 0);
        }
示例#3
0
        FCLMatch GetOrCreateOutMatchImpl(ref IMatch outMatch)
        {
            FCLMatch matchImp;

            if (outMatch == null)
            {
                matchImp = new FCLMatch(this);
                outMatch = matchImp;
            }
            else
            {
                matchImp = outMatch as FCLMatch;
                if (matchImp == null)
                {
                    throw new ArgumentException("outMatch has invalid type");
                }
            }
            return(matchImp);
        }