intellij-randomness / com.fwdekker.randomness.string / SymbolSet

SymbolSet

data class SymbolSet

A SymbolSet represents a named collection of symbols.

Parameters

name - the name of the symbol set

symbols - the symbols in the symbol set

Constructors

<init>

SymbolSet(name: String, symbols: String)

A SymbolSet represents a named collection of symbols.

Properties

name

var name: String

the name of the symbol set

symbols

var symbols: String

the symbols in the symbol set

Functions

toString

fun toString(): String

Returns the name field.

Companion Object Properties

ALPHABET

val ALPHABET: SymbolSet

The lowercase English alphabet.

BRACKETS

val BRACKETS: SymbolSet

A collection of brackets and parentheses.

defaultSymbolSets

val defaultSymbolSets: List<SymbolSet>

List of default symbol sets.

DIGITS

val DIGITS: SymbolSet

The digits 0 through 9.

HEXADECIMAL

val HEXADECIMAL: SymbolSet

The hexadecimal digits 0 through f.

lookAlikeCharacters

const val lookAlikeCharacters: String

Symbols that look like other symbols.

MINUS

val MINUS: SymbolSet

A minus (-).

SPACE

val SPACE: SymbolSet

A whitespace ( ).

SPECIAL

val SPECIAL: SymbolSet

A collection of special characters.

UNDERSCORE

val UNDERSCORE: SymbolSet

An underscore (_).