Re: [AD] utf16, file functions

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


2009/3/19 Elias Pschernig <elias.pschernig@xxxxxxxxxx>:
> Ok, updated patch attached. Changing from the _dup version to the user
> buffer version I also realized that the first patch didn't deal with
> terminating 0 characters properly, should be fixed now. Prototypes now
> are:
>
> ALLEGRO_USTR *al_ustr_new_from_utf16(uint16_t const *s)
> size_t al_ustr_size_utf16(const ALLEGRO_USTR *us)
> size_t al_ustr_encode_utf16(const ALLEGRO_USTR *us, uint16_t *s, size_t n)
>
> Not sure if the following two should be exposed to the public API, in
> the patch they are:
>
> size_t al_utf16_width(int c)
> size_t al_utf16_encode(uint16_t s[], int32_t c)

Looks good.

Peter




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