C# Class Pihrtsoft.Text.RegularExpressions.Linq.QuantifiablePattern

Represents a pattern that can be quantified, i.e. quantifier can be applied on it. This class is abstract.
Inheritance: Pattern
Exibir arquivo Open project: JosefPihrt/LinqToRegex

Public Methods

Method Description
Count ( int exactCount ) : QuantifiedPattern

Specifies that previous element must be matched a specified number of times.

Count ( int minCount, int maxCount ) : QuantifiedPattern

Specifies that previous element must be matched from minimal to maximum times.

CountFrom ( int minCount ) : QuantifiedPattern

Specifies that previous element must be matched at least specified number of times.

Maybe ( ) : QuantifiedPattern

Specifies that previous element must be matched zero or one time.

MaybeCount ( int maxCount ) : QuantifiedPattern

Specifies that previous element must be matched at most specified number of times.

MaybeMany ( ) : QuantifiedPattern

Specifies that previous element must be matched zero or more times.

OneMany ( ) : QuantifiedPattern

Specifies that previous element must be matched one or more times.

Protected Methods

Method Description
QuantifiablePattern ( ) : System

Initializes a new instance of the QuantifiablePattern class.

Method Details

Count() public method

Specifies that previous element must be matched a specified number of times.
is less than zero.
public Count ( int exactCount ) : QuantifiedPattern
exactCount int A number of times the pattern must be matched.
return QuantifiedPattern

Count() public method

Specifies that previous element must be matched from minimal to maximum times.
is less than zero or is less than .
public Count ( int minCount, int maxCount ) : QuantifiedPattern
minCount int A minimal number of times the pattern must be matched.
maxCount int A maximum number of times the pattern can be matched.
return QuantifiedPattern

CountFrom() public method

Specifies that previous element must be matched at least specified number of times.
is less than zero.
public CountFrom ( int minCount ) : QuantifiedPattern
minCount int A minimal number of times the pattern must be matched.
return QuantifiedPattern

Maybe() public method

Specifies that previous element must be matched zero or one time.
public Maybe ( ) : QuantifiedPattern
return QuantifiedPattern

MaybeCount() public method

Specifies that previous element must be matched at most specified number of times.
is less than zero.
public MaybeCount ( int maxCount ) : QuantifiedPattern
maxCount int A maximum number of times the pattern can be matched.
return QuantifiedPattern

MaybeMany() public method

Specifies that previous element must be matched zero or more times.
public MaybeMany ( ) : QuantifiedPattern
return QuantifiedPattern

OneMany() public method

Specifies that previous element must be matched one or more times.
public OneMany ( ) : QuantifiedPattern
return QuantifiedPattern

QuantifiablePattern() protected method

Initializes a new instance of the QuantifiablePattern class.
protected QuantifiablePattern ( ) : System
return System