utf16le-encoding
UTF16-le encoding, a.k.a. UCS2 encoding, an encoding you probably should never use.
UTF16-le encoding, a.k.a. UCS2 encoding, an encoding you probably should never use.
Unicode-aware string functions
A high-performance wrapper around `Intl.Segmenter` for efficient text segmentation. This class resolves memory handling issues seen with large strings and can enhance performance by 50-500x. Only ~70 loc (with comments) and no dependencies.
A decoder and encoder that allow you to manipulate bits in nanoseconds.
Return a regular expression to match a UTF-16 surrogate pair.
Return a regular expression to match an unpaired UTF-16 surrogate.
Standard string unicode constants.
Maximum Unicode code point.
Maximum Unicode code point in the Basic Multilingual Plane (BMP).
Test if a position in a string marks the start of a UTF-16 surrogate pair.
Test if a position in a string marks the start of a UTF-16 surrogate pair.
Encode and decode text files in a reliable way
Read and write text files in a reliable way
Grapheme cluster break tooling.
Convert a UTF-16 encoded string to an array of integers using UTF-8 encoding.
Percent-encode a UTF-16 encoded string according to RFC 3986.
Invoke a function for each UTF-16 code unit in a string, iterating from right to left.
Invoke a function for each UTF-16 code unit in a string.
Return a Unicode code point from a string at a specified position.
Invoke a function for each character in a string.