Jump to content

Unicode string - how element iterating?

Recommended Posts

48 minutes ago, Fr0sT.Brutal said:

Not all applications need rendering

Well, several posts above, @vfbb (topic starter) mentioned TEdit as an exmple "to clarify the problem", which is obviously uses text rendering.

  • Like 1

Share this post

Link to post
Posted (edited)

On Windows, you can use the UniScribe API to get the glyphs from UTF-16 sequences.
We did that for our https://github.com/synopse/mORMot/blob/master/SynPdf.pas library.


But it is not cross-platform at all!
ICU is huge, but the cross-platform way of using it. This is what we did in mORMot 2 - not for glyphs but for case folding, comparison and codepage conversions.

Check also https://github.com/BeRo1985/pucu/tree/master/src which is a pure-pascal Unicode library...
I recently found https://github.com/bellard/quickjs/blob/master/libunicode.h which is very well written, and eventually available in our mORMot2 QuickJS wrapper.

Edited by Arnaud Bouchez
  • Like 1

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now