MCPcopy Create free account
hub / github.com/dop251/goja / index

Method index

string_imported.go:272–278  ·  view source on GitHub ↗
(v String, start int)

Source from the content-addressed store, hash-verified

270}
271
272func (i *importedString) index(v String, start int) int {
273 i.ensureScanned()
274 if i.u != nil {
275 return i.u.index(v, start)
276 }
277 return asciiString(i.s).index(v, start)
278}
279
280func (i *importedString) lastIndex(v String, pos int) int {
281 i.ensureScanned()

Callers

nothing calls this directly

Calls 3

ensureScannedMethod · 0.95
asciiStringTypeAlias · 0.85
indexMethod · 0.65

Tested by

no test coverage detected