runtime/decoder/decode-codepoint
Esta página aún no está disponible en tu idioma.
Variables
Section titled “Variables”fromCodePoint()
Section titled “fromCodePoint()”const fromCodePoint: (...codePoints: number[]) => string;
Defined in: studiocms/packages/studiocms/src/runtime/decoder/decode-codepoint.ts:38
Polyfill for String.fromCodePoint
. It is used to create a string from a Unicode code point.
Parameters
Section titled “Parameters”codePoints
Section titled “codePoints”…number
[]
Returns
Section titled “Returns”string
Functions
Section titled “Functions”decodeCodePoint()
Section titled “decodeCodePoint()”function decodeCodePoint(codePoint: number): string
Defined in: studiocms/packages/studiocms/src/runtime/decoder/decode-codepoint.ts:74
Replace the code point if relevant, then convert it to a string.
Parameters
Section titled “Parameters”codePoint
Section titled “codePoint”number
The code point to decode.
Returns
Section titled “Returns”string
The decoded code point.
replaceCodePoint()
Section titled “replaceCodePoint()”function replaceCodePoint(codePoint: number): number
Defined in: studiocms/packages/studiocms/src/runtime/decoder/decode-codepoint.ts:59
Replace the given code point with a replacement character if it is a surrogate or is outside the valid range. Otherwise return the code point unchanged.
Parameters
Section titled “Parameters”codePoint
Section titled “codePoint”number
Returns
Section titled “Returns”number