How to correctly deal with unicode strings?

David Nadlinger code at klickverbot.at
Wed Nov 27 06:48:05 PST 2013


On Wednesday, 27 November 2013 at 14:34:15 UTC, Gary Willoughby 
wrote:
> Here i understand what is happening but how could i improve 
> this example to make the expected asserts true?

In this specific example you could e.g. use std.uni.normalize, 
which by default puts the string into NFC, which has all the 
canonical compositions applied (e.g. ë as a single character).

David


More information about the Digitalmars-d-learn mailing list