public IMatch CreateEmptyMatch() { var ret = new FCLMatch(this); ret.Init(RENS.Match.Empty, 0); return(ret); }
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); }
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); }