Skip to main content

string-functions

ai-research-agent / extractor/pdf-to-html/util/string-functions

Functions

charCodeArray()

function charCodeArray(string): any[]

Parameters

ParameterType

string

any

Returns

any[]


hasOnly()

function hasOnly(string, char): boolean

Parameters

ParameterType

string

any

char

any

Returns

boolean


hasUpperCaseCharacterInMiddleOfWord()

function hasUpperCaseCharacterInMiddleOfWord(text): boolean

Parameters

ParameterType

text

any

Returns

boolean


isDigit()

function isDigit(charCode): boolean

Parameters

ParameterType

charCode

any

Returns

boolean


isListItem()

function isListItem(string): boolean

Parameters

ParameterType

string

any

Returns

boolean


isListItemCharacter()

function isListItemCharacter(string): boolean

Parameters

ParameterType

string

any

Returns

boolean


isNumber()

function isNumber(string): boolean

Parameters

ParameterType

string

any

Returns

boolean


isNumberedListItem()

function isNumberedListItem(string): boolean

Parameters

ParameterType

string

any

Returns

boolean


normalizedCharCodeArray()

function normalizedCharCodeArray(string): any[]

Parameters

ParameterType

string

any

Returns

any[]


prefixAfterWhitespace()

function prefixAfterWhitespace(prefix, string): any

Parameters

ParameterType

prefix

any

string

any

Returns

any


removeLeadingWhitespaces()

function removeLeadingWhitespaces(string): any

Parameters

ParameterType

string

any

Returns

any


removeTrailingWhitespaces()

function removeTrailingWhitespaces(string): any

Parameters

ParameterType

string

any

Returns

any


suffixBeforeWhitespace()

function suffixBeforeWhitespace(string, suffix): any

Parameters

ParameterType

string

any

suffix

any

Returns

any


wordMatch()

function wordMatch(string1, string2): number

Parameters

ParameterType

string1

any

string2

any

Returns

number