happypdf / isWithinBMP
Function: isWithinBMP()
ts
function isWithinBMP(codePoint): boolean;Defined in: src/utils/unicode.ts:241
Returns true if the codePoint is within the Basic Multilingual Plane (BMP). Code points inside the BMP are not encoded with surrogate pairs.
Parameters
| Parameter | Type | Description |
|---|---|---|
codePoint | number | The code point to be evaluated. Reference: https://en.wikipedia.org/wiki/UTF-16#Description |
Returns
boolean