|
libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
|
Unicode case-folding lookup tables for libsnobol4. More...

Go to the source code of this file.
Functions | |
| void | snobol_to_upper_cp (uint32_t cp, uint32_t *out, int *out_len) |
| uint32_t | snobol_to_lower_cp (uint32_t cp) |
Unicode case-folding lookup tables for libsnobol4.
Provides codepoint-level case conversion with no external ICU dependency. All data is compiled-in static C arrays.
Coverage:
Codepoints outside the BMP (U+10000+) are returned unchanged (identity mapping). Some lowercase codepoints expand to multiple uppercase codepoints; the best-known case is U+00DF (ß) → "SS" (U+0053 U+0053).
Definition in file unicode_fold.h.
| uint32_t snobol_to_lower_cp | ( | uint32_t | cp | ) |
Convert a Unicode codepoint to its lowercase equivalent.
| cp | Input codepoint. |
| void snobol_to_upper_cp | ( | uint32_t | cp, |
| uint32_t * | out, | ||
| int * | out_len ) |
Convert a Unicode codepoint to its uppercase equivalent(s).
| cp | Input codepoint. |
| out | Caller-provided output buffer of at least 2 uint32_t elements. On return, holds the resulting uppercase codepoint(s). The buffer is written by the function; ownership stays with the caller. Do NOT free the contents — they are scalar values. |
| out_len | Set to the number of codepoints written to out (1 or 2). |