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

Method space

packages/effect/src/encoding/Xml.ts:2144–2147  ·  view source on GitHub ↗
(s: string, i: number, end: number)

Source from the content-addressed store, hash-verified

2142
2143 // Skips the whitespace that is required at `i`
2144 private space(s: string, i: number, end: number): number {
2145 if (i >= end || !isSpace(s.charCodeAt(i))) throw this.syntax("expected whitespace", i)
2146 return skipSpace(s, i, end)
2147 }
2148
2149 // Returns the end of the name that is required at `i`
2150 private name(s: string, i: number, end: number): number {

Callers 1

doctypeDeclarationMethod · 0.95

Calls 3

syntaxMethod · 0.95
isSpaceFunction · 0.85
skipSpaceFunction · 0.85

Tested by

no test coverage detected