Skip to content

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 ​

ParameterTypeDescription
codePointnumberThe code point to be evaluated. Reference: https://en.wikipedia.org/wiki/UTF-16#Description

Returns ​

boolean

MIT Licensed. A fork of pdf-lib.