Re:C Strings and my slow descent to madness
by UncleEntity on Thursday April 06, 2023 @09:51AM
(#35468301)
Was going to say the same thing.
If you want Unicode in C a wrapper library is pretty much a given.
When I was adding Unicode support to the small scheme interpreter I like playing with I found a super simple string library, a bunch of generated code (who doesn’t love 1000 line switch statements) for dealing with utf-8 code points and bob’s your uncle. Could have probably found a library that did it all but the goal was learning and yak shaving.
Haven’t ever messed with the wide strings, seems like more of a hassle than they’re worth.
If you want Unicode in C a wrapper library is pretty much a given.
When I was adding Unicode support to the small scheme interpreter I like playing with I found a super simple string library, a bunch of generated code (who doesn’t love 1000 line switch statements) for dealing with utf-8 code points and bob’s your uncle. Could have probably found a library that did it all but the goal was learning and yak shaving.
Haven’t ever messed with the wide strings, seems like more of a hassle than they’re worth.