Registry / utility / libunibreak

libunibreak

JSON →
library6.1vcpkgunverified

Implementation of Unicode line breaking and word breaking algorithms as described in UAX #14 and UAX #29.

vcpkg install libunibreak
INSTALL
IMPORT
SIG · LIBUNIBREAK
L
libunibreak
utilitycppv6.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

unibreak/linebreak.h
#include <unibreak/linebreak.h>

Compute line break opportunities for a UTF-8 string

#include <unibreak/linebreak.h> #include <stdio.h> #include <string.h> int main() { const char text[] = "Hello World!"; int len = strlen(text); char breaks[len + 1]; set_linebreaks_utf8((const utf8_t*)text, len, NULL, breaks); for (int i = 0; i < len; i++) { printf("%c", text[i]); if (breaks[i] == LINEBREAK_MUSTBREAK) printf("\n"); } printf("\n"); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
6.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

libunibreak — pip install libunibreak · libregistry