Home Reference Source Test
public class | source

StringUtils

Static Method Summary

Static Public Methods
public static

commonPrefix(str1: string, str2: string): string

public static

isHex(str: string): boolean

public static

isHexBytes(str: string, length: number): boolean

public static

isMultibyte(str: string): boolean

public static

lpad(str: string, padString: string, length: number): string

Static Public Methods

public static commonPrefix(str1: string, str2: string): string source

Params:

NameTypeAttributeDescription
str1 string
str2 string

Return:

string

public static isHex(str: string): boolean source

Params:

NameTypeAttributeDescription
str string

Return:

boolean

public static isHexBytes(str: string, length: number): boolean source

Params:

NameTypeAttributeDescription
str string
length number
  • optional

Return:

boolean

public static isMultibyte(str: string): boolean source

Params:

NameTypeAttributeDescription
str string

Return:

boolean

public static lpad(str: string, padString: string, length: number): string source

Params:

NameTypeAttributeDescription
str string
padString string
length number

Return:

string