Table of Contents

Class RegexGenerator

Namespace
Hegel
Assembly
Hegel.dll

Draws strings matching a regular expression.

public sealed class RegexGenerator : ValueGenerator<string>
Inheritance
RegexGenerator
Inherited Members

Properties

Label

The span label the engine files this generator's draws under. Defaults to a label derived from the class's full name.

public override ulong Label { get; }

Property Value

ulong

Methods

Alphabet(TextGenerator)

Draw the characters a wildcard matches from characters.

public RegexGenerator Alphabet(TextGenerator characters)

Parameters

characters TextGenerator

Returns

RegexGenerator

DoDraw(TestCase)

Draw one value. Called inside a span labelled Label: draw from another generator through DrawSilent<T>(Generator<T>), which opens its span, rather than by calling its hook.

protected override string DoDraw(TestCase tc)

Parameters

tc TestCase

Returns

string

Fullmatch(bool)

Whether the whole string must match (the default), or only a substring.

public RegexGenerator Fullmatch(bool fullmatch)

Parameters

fullmatch bool

Returns

RegexGenerator