MCPcopy Create free account
hub / github.com/Noumena-Network/code / internCharString

Function internCharString

src/ink/screen.ts:1165–1167  ·  view source on GitHub ↗

* Intern a character string via the screen's shared CharPool. * Supports grapheme clusters like family emoji.

(screen: Screen, char: string)

Source from the content-addressed store, hash-verified

1163 * Supports grapheme clusters like family emoji.
1164 */
1165function internCharString(screen: Screen, char: string): number {
1166 return screen.charPool.intern(char)
1167}
1168
1169/**
1170 * Bulk-copy a rectangular region from src to dst using TypedArray.set().

Callers 2

setCellAtFunction · 0.85
writePlainAsciiLineAtFunction · 0.85

Calls 1

internMethod · 0.45

Tested by

no test coverage detected