MCPcopy Create free account
hub / github.com/buger/jsonparser / combineUTF16Surrogates

Function combineUTF16Surrogates

escape.go:22–24  ·  view source on GitHub ↗

NOTE: combineUTF16Surrogates is blocked by an unsupported `<<` shift op in the translator (Phase T.* gap, beyond #1/#2/#5). Even though Fix #6 resolves the package-const references in this body, the shift remains untranslated, so no lemma is attached here.

(high, low rune)

Source from the content-addressed store, hash-verified

20// resolves the package-const references in this body, the shift remains
21// untranslated, so no lemma is attached here.
22func combineUTF16Surrogates(high, low rune) rune {
23 return supplementalPlanesOffset + (high-highSurrogateOffset)<<10 + (low - lowSurrogateOffset)
24}
25
26const badHex = -1
27

Callers 1

decodeUnicodeEscapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected