CodepointSetGenerator

A string generator from a predefined set of codepoints or characters.

Inheritors

Constructors

Link copied to clipboard
constructor(chars: CharArray)

All characters must be from BMP (no parts of surrogate pairs allowed).

constructor(s: String)

Parse the given String and split into BMP and supplementary codepoints.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun ofCodePointsLength(r: Random, minCodePoints: Int, maxCodePoints: Int): String
Link copied to clipboard
open override fun ofCodeUnitsLength(r: Random, minCodeUnits: Int, maxCodeUnits: Int): String
Link copied to clipboard
fun ofStringLength(r: Random, minCodeUnits: Int, maxCodeUnits: Int): String

An alias for ofCodeUnitsLength.