Optional
unit?: A string results from the join between several unitary strings produced by the Arbitrary instance defined by unit
.
The minLength
and maxLength
refers to the number of these units composing the string. In other words it does not have to be confound with .length
on an instance of string.
A unit can either be a fully custom Arbitrary or one of the pre-defined options:
'grapheme'
- Any printable grapheme as defined by the Unicode standard. This unit includes graphemes that may:
'\u{0061}\u{0300}'
)'\u{1f431}'
)'grapheme-composite'
- Any printable grapheme limited to a single code point. This option produces graphemes limited to a single code point.
'grapheme-ascii'
- Any printable ASCII character.'binary'
- Any possible code point (except half surrogate pairs), regardless of how it may combine with subsequent code points in the produced string. This unit produces a single code point within the full Unicode range (0000-10FFFF).'binary-ascii'
- Any possible ASCII character, including control characters. This unit produces any code point in the range 0000-00FF.
Constraints to be applied on arbitrary string