public AppendSubtraction ( IBaseGroup baseGroup, IExcludedGroup excludedGroup ) : void | ||
baseGroup | IBaseGroup | A base group. |
excludedGroup | IExcludedGroup | An excluded group. |
return | void |
public void AppendSubtraction(IBaseGroup baseGroup, IExcludedGroup excludedGroup)
{
if (baseGroup == null)
throw new ArgumentNullException(nameof(baseGroup));
if (excludedGroup == null)
throw new ArgumentNullException(nameof(excludedGroup));
AppendCharGroupStart();
baseGroup.AppendBaseGroupTo(this);
AppendDirect('-');
excludedGroup.AppendExcludedGroupTo(this);
AppendCharGroupEnd();
}
internal override void AppendTo(PatternBuilder builder) { builder.AppendSubtraction(_baseGroup, _excludedGroup); }