4 ms·
> This is commercial only. You can use Unicorn for non-commercial use [1], but yes, for commercial use you need to buy a license. > It's much faster to use pr
by hgs3 2y ago
> This is commercial only.
You can use Unicorn for non-commercial use [1], but yes, for commercial use you need to buy a license.
> It's much faster to use precomputed tables per algorithm
You're absolutely right about using precomputed tables per algorithm. That is the secret to the library's speed.
> Free and small is my safeclib, which does about half of it.
I like safeclib! It's nice to hear from the author. It's worth distinguishing that safeclib is a safer string library whereas Unicorn is a Unicode algorithms library, not a string library.
[1] https://github.com/railgunlabs/unicorn/blob/master/LICENSE https://github.com/railgunlabs/unicorn/blob/master/LICENSE
- rurban 2y agoWell, a string is unicode nowadays. And for sure not just a zero-terminated blob. That would be a buffer. Only the Linux kernel still holds this invalid view. So every string library needs at least a compare function to find strings, with all the variants of same graphemes. Which leads us to NFC normalization for a start. Upcase tables and wordlength tables are also needed.