strings and ranges

Jason den Dulk public2 at jasondendulk.com
Wed Aug 14 17:48:58 PDT 2013


Hello.

When working with my code I noticed that if I use front on a 
char[], it yields a dchar. Am I correct in concluding that it 
does a UTF-8 to UTF-32 conversion and popFont will skip the whole 
character, not just a code unit?

Also, does this mean that if I'm creating an output range for 
char[], will I need to implement a put(dchar) as well as a 
put(char)?

Thanks
Regards
Jason


More information about the Digitalmars-d-learn mailing list