### Build and install with autoconf Source: https://github.com/adah1972/libunibreak/blob/master/README.md Standard build and install commands for *NIX systems supported by autoconfiscation tools. Builds both dynamic and static libraries. Optional targets: `make doc` for doxygen documentation, `make check` for self-check tests. ```shell ./configure make sudo make install ``` -------------------------------- ### Build with GCC and Binutils Source: https://github.com/adah1972/libunibreak/blob/master/README.md Build the static library on systems with GCC and Binutils. Optional targets: `make debug` or `make release` for explicit build type, `make doc` for doxygen documentation. ```shell cd src cp -p Makefile.gcc Makefile make ``` -------------------------------- ### Build with MSVC on Windows Source: https://github.com/adah1972/libunibreak/blob/master/README.md Build the static library using MSVC on Windows. By default, the debug version is built. To build the release version, use the command with the `CFG` option. ```shell cd src nmake -f Makefile.msvc ``` ```shell nmake -f Makefile.msvc CFG="libunibreak - Win32 Release" ``` -------------------------------- ### set_linebreaks processing flow Source: https://github.com/adah1972/libunibreak/blob/master/doc/architecture.md Pseudocode showing the main loop of set_linebreaks, including initialization, per-character processing, LB25 fixup, pending revert, and final break writing. ```text set_linebreaks(s, len, lang, outputType, brks, get_next_char) lb_init_break_context(&ctx, firstCh, lang) loop over remaining chars: ctx.posLast = posLast brks[posLast] = lb_process_next_char(&ctx, ch) apply LB25 fixup (posLb25Fixup/fLb25Mark -> NOBREAK) apply pending revert (fPendingRevert -> cPendingOrigBrk) revert any unresolved pending break write the final break (MUSTBREAK or INDETERMINATE) ``` -------------------------------- ### get_next_char_t typedef for encoding-agnostic decoding Source: https://github.com/adah1972/libunibreak/blob/master/doc/architecture.md Defines the function pointer type used by the generic core to decode one code point from a string, regardless of encoding. The implementations ub_get_next_char_utf8, ub_get_next_char_utf16, and ub_get_next_char_utf32 advance the index. ```c typedef utf32_t (*get_next_char_t)(const void *, size_t, size_t *); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.