MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / computeCodePoint

Function computeCodePoint

contributes/src/vs/base/common/strings.ts:470–472  ·  view source on GitHub ↗
(highSurrogate: number, lowSurrogate: number)

Source from the content-addressed store, hash-verified

468 * See http://en.wikipedia.org/wiki/Surrogate_pair
469 */
470export function computeCodePoint(highSurrogate: number, lowSurrogate: number): number {
471 return ((highSurrogate - 0xD800) << 10) + (lowSurrogate - 0xDC00) + 0x10000;
472}
473
474/**
475 * get the code point that begins at offset `offset`

Callers 2

getNextCodePointFunction · 0.85
getPrevCodePointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected