Skip to content

Class: StringUtils

Constructors

new StringUtils()

new StringUtils(): StringUtils

Returns

StringUtils

Methods

commonPrefix()

static commonPrefix(str1, str2): string

Parameters

str1: string

str2: string

Returns

string

Defined in

@nimiq/core/lib/index.d.ts:107


isHex()

static isHex(str): boolean

Parameters

str: string

Returns

boolean

Defined in

@nimiq/core/lib/index.d.ts:105


isHexBytes()

static isHexBytes(str, length?): boolean

Parameters

str: string

length?: number

Returns

boolean

Defined in

@nimiq/core/lib/index.d.ts:106


isMultibyte()

static isMultibyte(str): boolean

Parameters

str: string

Returns

boolean

Defined in

@nimiq/core/lib/index.d.ts:104


lpad()

static lpad(str, padString, length): string

Parameters

str: string

padString: string

length: number

Returns

string

Defined in

@nimiq/core/lib/index.d.ts:108