Skip to main content
Version: 2.2.0

Class: Separator

The token used to indicate how to split string values.

Properties

name

readonly name: string


token

readonly token: string


all

readonly static all: Map<string, Separator>

All the available separators.


COLON

readonly static COLON: Separator


COMMA

readonly static COMMA: Separator


DOUBLE_QUOTE

readonly static DOUBLE_QUOTE: Separator


EMPTY

readonly static EMPTY: Separator


HYPHEN

readonly static HYPHEN: Separator


PERIOD

readonly static PERIOD: Separator


SEMI_COLON

readonly static SEMI_COLON: Separator


SINGLE_QUOTE

readonly static SINGLE_QUOTE: Separator


SPACE

readonly static SPACE: Separator


tokens

readonly static tokens: string[]

All the available tokens.


UNDERSCORE

readonly static UNDERSCORE: Separator

Methods

toString()

toString(): string

String representation of this object.

Returns

string


cast()

static cast(key): Separator

Makes a string key a separator type.

Parameters

key

string

Returns

Separator