C# Class YuriyGuts.RegexBuilder.RegexQuantifier

Afficher le fichier Open project: YuriyGuts/regex-builder Class Usage Examples

Méthodes publiques

Méthode Description
AtLeast ( int minOccurrenceCount ) : RegexQuantifier

The "{n,}" quantifier. Minimum occurrence count.

AtLeast ( int minOccurrenceCount, bool isLazy ) : RegexQuantifier

The "{n,}" or "{n,}?" quantifier. Minimum occurrence count. True - use lazy quantifier. False - use greedy quantifier.

Custom ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : RegexQuantifier

Custom "{n,m}" or "{n,m}?" quantifier.

Exactly ( int occurrenceCount ) : RegexQuantifier

The "{n}" or "{n}?" quantifier. Exact occurrence count.

Exactly ( int occurrenceCount, bool isLazy ) : RegexQuantifier

The "{n}" or "{n}?" quantifier. Exact occurrence count. True - use lazy quantifier. False - use greedy quantifier.

RegexQuantifier ( ) : System

Initializes a new instance of RegexQuantifier.

RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount ) : System

Initializes a new instance of RegexQuantifier.

RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : System

Initializes a new instance of RegexQuantifier.

ToRegexPattern ( ) : string

Converts RegexQuantifier to a Regex pattern string.

Method Details

AtLeast() public static méthode

The "{n,}" quantifier. Minimum occurrence count.
public static AtLeast ( int minOccurrenceCount ) : RegexQuantifier
minOccurrenceCount int
Résultat RegexQuantifier

AtLeast() public static méthode

The "{n,}" or "{n,}?" quantifier. Minimum occurrence count. True - use lazy quantifier. False - use greedy quantifier.
public static AtLeast ( int minOccurrenceCount, bool isLazy ) : RegexQuantifier
minOccurrenceCount int
isLazy bool
Résultat RegexQuantifier

Custom() public static méthode

Custom "{n,m}" or "{n,m}?" quantifier.
public static Custom ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : RegexQuantifier
minOccurrenceCount int Minimum occurrence count.
maxOccurrenceCount int Maximum occurrence count.
isLazy bool True - use lazy quantifier. False - use greedy quantifier.
Résultat RegexQuantifier

Exactly() public static méthode

The "{n}" or "{n}?" quantifier. Exact occurrence count.
public static Exactly ( int occurrenceCount ) : RegexQuantifier
occurrenceCount int
Résultat RegexQuantifier

Exactly() public static méthode

The "{n}" or "{n}?" quantifier. Exact occurrence count. True - use lazy quantifier. False - use greedy quantifier.
public static Exactly ( int occurrenceCount, bool isLazy ) : RegexQuantifier
occurrenceCount int
isLazy bool
Résultat RegexQuantifier

RegexQuantifier() public méthode

Initializes a new instance of RegexQuantifier.
public RegexQuantifier ( ) : System
Résultat System

RegexQuantifier() public méthode

Initializes a new instance of RegexQuantifier.
public RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount ) : System
minOccurrenceCount int Minimum occurrence count.
maxOccurrenceCount int Maximum occurrence count.
Résultat System

RegexQuantifier() public méthode

Initializes a new instance of RegexQuantifier.
public RegexQuantifier ( int minOccurrenceCount, int maxOccurrenceCount, bool isLazy ) : System
minOccurrenceCount int Minimum occurrence count.
maxOccurrenceCount int Maximum occurrence count.
isLazy bool True - use lazy quantifier. False - use greedy quantifier.
Résultat System

ToRegexPattern() public méthode

Converts RegexQuantifier to a Regex pattern string.
public ToRegexPattern ( ) : string
Résultat string