Questions tagged [libunistring]
2 questions
1
vote
2 answers
How to get single characters from unicode string and compare, print them?
I am processing unicode strings in C with libunistring. Can't use another library. My goal is to read a single character from the unicode string at its index position, print it, and compare it to a fixed value. This should be really simple, but well…

barfuin
- 16,865
- 10
- 85
- 132
0
votes
1 answer
How do I call a C function from a library installed with `apt install` using ctypes?
I am trying to call ulc_width_linebreaks from unilbrk from GNU's libunistring (a C function) on my Python strings using the ctypes module. libunistring is available on Ubuntu, and I've installed it with sudo apt install libunistring2…

Boris Verkhovskiy
- 14,854
- 11
- 100
- 103