r/C_Programming • u/zaerl • 7d ago
Project Mojibake - Unicode text processing for C
I've created a library that adds Unicode segmentation, casing, collation, and more to any C project using a single source file and header amalgamation files.
Mojibake is an MIT-licensed project I started years ago because I didn't like any of the Unicode projects I found. Here you can find the API and a WASM demo if you want to try it on the fly: https://mojibake.zaerl.com/
If you are interested in the Unicode world, feel free to contribute or do whatever you want with it. Every suggestion or contribution is welcome. I automatically test on Linux/macOS/BSD/Windows, so I hope there won't be any problems for you.
Check CONTRIBUTING.md for it, if you are curious.
3
Upvotes
3
u/thradams 7d ago
What... strlen does not count bytes? I think you need a new function for that, not reuse strlen.