Alsing.Text.TokenTree.AddPattern C# (CSharp) Method

AddPattern() public method

public AddPattern ( IPatternMatcher matcher, bool caseSensitive, bool needSeparators, object tags ) : void
matcher IPatternMatcher
caseSensitive bool
needSeparators bool
tags object
return void
        public void AddPattern(IPatternMatcher matcher, bool caseSensitive, bool needSeparators, object[] tags)
        {
            if (matcher == null)
                throw new ArgumentNullException("matcher");

            AddPattern(null, matcher, caseSensitive, needSeparators, tags);
        }

Same methods

TokenTree::AddPattern ( string prefix, IPatternMatcher matcher, bool caseSensitive, bool needSeparators, object tags ) : void

Usage Example

Example #1
0
        public Tokenizer AddPattern(IPatternMatcher matcher, bool caseSensitive, bool needsSeparators, params object[] tags)
        {
            ThrowIfImmutable();

            tree.AddPattern(matcher, caseSensitive, needsSeparators, tags);
            return(this);
        }