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

Function isName

packages/effect/src/encoding/Xml.ts:1061–1061  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

1059
1060// Name characters exclude every invalid character but unpaired surrogates
1061const isName = (s: string): boolean => s.length > 0 && scanName(s, 0, s.length) === s.length && isWellFormed(s)
1062
1063// Returns the index of the colon in a name, -1 when it has none, or -2 when it
1064// is not a qualified name

Callers 5

resolveQNameFunction · 0.85
referenceMethod · 0.85
parseSegmentFunction · 0.85
checkNameFunction · 0.85
isNameMethod · 0.85

Calls 2

isWellFormedFunction · 0.90
scanNameFunction · 0.85

Tested by

no test coverage detected