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

Function copyString

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

Source from the content-addressed store, hash-verified

1307// so strings that the parser holds, such as the name of an open element and
1308// the namespaces it declares, are copied
1309const copyString = (s: string): string => s.length < 13 ? s : (" " + s).slice(1)
1310
1311// A namespace bound by a declaration. Bindings to the same namespace share
1312// one, so that namespaces are compared by identity however long they are.

Callers 4

startTagMethod · 0.85
openScopeMethod · 0.85
internMethod · 0.85
declareFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected