Pihrtsoft.Text.RegularExpressions.Linq.PatternBuilder.AppendGroupContent C# (CSharp) Method

AppendGroupContent() private method

private AppendGroupContent ( object content, RegexOptions applyOptions, RegexOptions disableOptions ) : void
content object
applyOptions RegexOptions
disableOptions RegexOptions
return void
        internal void AppendGroupContent(object content, RegexOptions applyOptions, RegexOptions disableOptions)
        {
            RegexOptions currentOptions = CurrentOptions;

            CurrentOptions |= applyOptions;
            CurrentOptions &= ~disableOptions;

            Append(content, GroupMode.None);

            CurrentOptions = currentOptions;
        }

Same methods

PatternBuilder::AppendGroupContent ( object content ) : void

Usage Example

        internal override void AppendTo(PatternBuilder builder)
        {
            if (AddGroup)
                builder.AppendNoncapturingGroup(Content);
            else
                builder.AppendGroupContent(Content);

            AppendQuantifierTo(builder);
        }