Home Manual Reference Source

Function

Static Public Summary
public

* bruteForce(s: string, si: number, sj: number, p: string, pi: number, pj: number): IterableIterator<number>

Find.

public

startsWith(p: string, pi: number, pj: number, s: string, si: number): boolean

Checks that the second input string matches the first input string at the given offsets.

Static Public

public * bruteForce(s: string, si: number, sj: number, p: string, pi: number, pj: number): IterableIterator<number> source

Find.

Params:

NameTypeAttributeDescription
s string
si number
sj number
p string
pi number
pj number

Return:

IterableIterator<number>

public startsWith(p: string, pi: number, pj: number, s: string, si: number): boolean source

Checks that the second input string matches the first input string at the given offsets. Undefined behavior if one of the strings is not long enough.

Params:

NameTypeAttributeDescription
p string
pi number
pj number
s string
si number

Return:

boolean