MCPcopy Create free account
hub / github.com/microsoft/typescript-go / SurrogatePairToCodePoint

Function SurrogatePairToCodePoint

internal/stringutil/util.go:301–303  ·  view source on GitHub ↗
(high rune, low rune)

Source from the content-addressed store, hash-verified

299}
300
301func SurrogatePairToCodePoint(high rune, low rune) rune {
302 return utf16.DecodeRune(high, low)
303}
304
305func CodePointToSurrogatePair(ch rune) (high rune, low rune) {
306 return utf16.EncodeRune(ch)

Callers 3

scanEscapeSequenceMethod · 0.92
CombineSurrogatePairsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected