Re: [AD] UTF-8 routines done

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


On 2009-02-02, Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx> wrote:
> On February 2, 2009, Peter Wang wrote:
> > I've finished adding all the functions that I wanted to the new UTF-8
> > API.  Now we just have to start using it (a review is welcome too, of
> > course).  If you find yourself writing some string function that could
> > be generally useful then we can add it.  I will work on converting
> > config.c tomorrow.
> 
> The path functions have a couple utility functions at the top that might be 
> useful. Not sure if you added a form of them already.

_ustrduprange = al_ustr_dup_substr
_ustrcpyrange = al_ustr_assign_substr

_fix_slashes doesn't have an equivalent.  bfindreplace already exists so
I'll add a wrapper for it.

_split_path can be written more easily using al_ustr_find_chr.
It would be even easier with a function to count the slashes for you.
OTOH splitting strings at delimiters is common enough that we should
probably add a function to do it.

Peter





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