MCPcopy
hub / github.com/callstack/agent-device / readName

Method readName

src/utils/xml.ts:213–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211 }
212
213 private readName(): string {
214 const startIndex = this.index;
215 while (this.index < this.xml.length && isXmlNameChar(this.xml[this.index])) {
216 this.index += 1;
217 }
218 return this.xml.slice(startIndex, this.index);
219 }
220
221 private readRequiredName(errorMessage: string): string {
222 const name = this.readName();

Callers 2

readClosingTagMethod · 0.95
readRequiredNameMethod · 0.95

Calls 1

isXmlNameCharFunction · 0.85

Tested by

no test coverage detected