Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CodepointStringType

Implements

Index

Constructors

constructor

Properties

Private _options

enforceUnicodeRegExp

enforceUnicodeRegExp: boolean

lowerCase

lowerCase: boolean

maxCodepoints

maxCodepoints: number

Optional minCodepoints

minCodepoints: undefined | number

name

name: Name = name

normalization

normalization: Normalization

Optional pattern

pattern: RegExp

trimmed

trimmed: boolean

Optional unorm

unorm: UnormLike

Methods

Private _applyOptions

  • _applyOptions(): void

clone

  • clone(val: string): string

diff

  • diff(oldVal: string, newVal: string): Diff | undefined

equals

  • equals(val1: string, val2: string): boolean

patch

  • patch(oldVal: string, diff: Diff | undefined): string

read

  • read<R>(reader: Reader<R>, raw: R): string

reverseDiff

  • reverseDiff(diff: Diff | undefined): Diff | undefined

squash

  • squash(diff1: Diff | undefined, diff2: Diff | undefined): Diff | undefined

test

  • test(val: string): boolean

testError

  • testError(val: string): Error | undefined

toJSON

write

  • write<W>(writer: Writer<W>, value: string): W

Static fromJSON

Generated using TypeDoc