Re: [AD] usnprintf()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Ah, right. I hadn't considered that. In UTF-8, the actual size of a
> character (in bytes) isn't generally known, so the length of the string in
> bytes doesn't say how many characters it can hold, right?

If you know the max number of bytes per character (6 for UTF-8 IIRC), you can 
do the division, but that's not pretty and grossly wastes space.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/