Skip to content

ucs2length

ucs2length(s): number

Get UCS-2 length of a string https://mathiasbynens.be/notes/javascript-encoding https://github.com/bestiejs/punycode.js - punycode.ucs2.decode

Parameters

s: string

Returns

number

Source

utils/src/json-schema/ucs2-length.ts:7