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

AppendEndOfInputOrLine() public method

Appends a pattern that is matched at the end of the string (or line if the RegexOptions.Multiline option is applied). End of line is defined as the position before a linefeed.
public AppendEndOfInputOrLine ( ) : void
return void
        public void AppendEndOfInputOrLine()
        {
            AppendInternal('$');

            if (_fBuilder)
                _builder.AddInfo(IsCurrentOptions(RegexOptions.Multiline) ? SyntaxKind.EndOfInputOrLine : SyntaxKind.EndOfInput);
        }

Usage Example

Example #1
0
 internal override void AppendTo(PatternBuilder builder)
 {
     builder.AppendEndOfInputOrLine();
 }