MCPcopy Index your code
hub / github.com/codeaashu/claude-code / translateToString

Method translateToString

src/server/web/public/terminal.js:4214–4223  ·  view source on GitHub ↗
(e3, t3, i3, s3)

Source from the content-addressed store, hash-verified

4212 }
4213 }
4214 translateToString(e3, t3, i3, s3) {
4215 t3 = t3 ?? 0, i3 = i3 ?? this.length, e3 && (i3 = Math.min(i3, this.getTrimmedLength())), s3 && (s3.length = 0);
4216 let r2 = "";
4217 for (; t3 < i3; ) {
4218 const e4 = this._data[3 * t3 + 0], i4 = 2097151 & e4, a2 = 2097152 & e4 ? this._combined[t3] : i4 ? (0, o.stringFromCodePoint)(i4) : n.WHITESPACE_CELL_CHAR;
4219 if (r2 += a2, s3) for (let e5 = 0; e5 < a2.length; ++e5) s3.push(t3);
4220 t3 += e4 >> 22 || 1;
4221 }
4222 return s3 && s3.push(t3), r2;
4223 }
4224 }
4225 t2.BufferLine = h;
4226 }, 4841: (e2, t2) => {

Callers

nothing calls this directly

Calls 2

getTrimmedLengthMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected