MCPcopy
hub / github.com/witheve/Eve / getLength

Method getLength

src/runtime/providers/string.ts:327–334  ·  view source on GitHub ↗
(text, az)

Source from the content-addressed store, hash-verified

325 }
326
327 getLength(text, az) {
328 if (az === "symbols") {
329 return [this.countSymbols(text)];
330 } else if (az === "code-points") {
331 return [text.length];
332 }
333 return undefined;
334 }
335
336 resolveProposal(proposal, prefix) {
337 let {args} = this.resolve(prefix);

Callers 2

resolveProposalMethod · 0.95
testMethod · 0.95

Calls 1

countSymbolsMethod · 0.95

Tested by 1

testMethod · 0.76