MCPcopy Create free account
hub / github.com/Effect-TS/effect / indexOf

Function indexOf

packages/effect/src/encoding/JsonArray.ts:173–176  ·  view source on GitHub ↗
(text: string, search: string, i: number)

Source from the content-addressed store, hash-verified

171const isWhitespace = (c: number): boolean => c === SPACE || c === LF || c === CR || c === TAB
172
173const indexOf = (text: string, search: string, i: number): number => {
174 const index = text.indexOf(search, i)
175 return index === -1 ? text.length : index
176}
177
178const isValueStart = (c: number): boolean =>
179 c === QUOTE || c === LBRACKET || c === LBRACE || c === 45 || (c >= 48 && c <= 57) || c === 102 || c === 110 ||

Callers 1

scanStringMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected