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

Method readText

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

Source from the content-addressed store, hash-verified

178 }
179
180 private readText(): void {
181 const nextTagIndex = this.xml.indexOf('<', this.index);
182 const endIndex = nextTagIndex === -1 ? this.xml.length : nextTagIndex;
183 this.appendText(this.xml.slice(this.index, endIndex), true);
184 this.index = endIndex;
185 }
186
187 private readCdata(): void {
188 const startIndex = this.index + '<![CDATA['.length;

Callers 3

readNextTokenMethod · 0.95
readTextFunction · 0.80
readLinuxClipboardFunction · 0.80

Calls 1

appendTextMethod · 0.95

Tested by

no test coverage detected