Skip to content

RegSeed.MaxCharClassInverseLength Property

JanZsch edited this page Nov 14, 2018 · 3 revisions

Returns the maximum length of a character or character class complement expression.

    public int MaxCharClassInverseLength { get; }

Remarks

Whenever you want to create a complement of an expression the complement operation is propagated down to characters or character classes.
The parameter tells you how long the complement of such an atomic expression can maximally be, i.e.

Expression MaxCharClassInverseLength Value Possible output
~a 1 b, c, d, ..., A, B, ..., 1, 2, ...
~a 3 b, c, d, ..., aa, ab, ac, ..., aaa, aab, aac, ...
~[b-z] 1 a, A, B, C, ..., 1, 2, 3, ...
~[b-z] 2 a, A, B, C, ..., aa, ab, ac, ...

Previous
Next