Function: utf8Length()
function utf8Length(value: string): number;
Defined in: packages/player/src/subparam.ts:44
UTF-8 byte length. mpv's %N% prefix counts bytes, not UTF-16 code units.
Written out rather than taken from TextEncoder, which this package cannot
assume: it compiles against lib: ["esnext"] with no DOM/Node globals, and
Hermes has shipped it only recently.
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
number