MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / isSurrogatePair

Function isSurrogatePair

src/utils/characters.ts:23–25  ·  view source on GitHub ↗
(string: string, start = 0)

Source from the content-addressed store, hash-verified

21}
22
23export function isSurrogatePair(string: string, start = 0): boolean {
24 return isHighSurrogate(string, start) && isLowSurrogate(string, start + 1);
25}
26
27export function decodeUnicodeEscapeSequence(string: string): string {
28 let result = '';

Callers 3

characters.tsFile · 0.90
getUnicodeCharFunction · 0.85
getLastUnicodeCharFunction · 0.85

Calls 2

isHighSurrogateFunction · 0.85
isLowSurrogateFunction · 0.85

Tested by

no test coverage detected