bug-libunistring
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-libunistring] Re: UTF-8 backward iteration proposal for libunistrin


From: Bruno Haible
Subject: [bug-libunistring] Re: UTF-8 backward iteration proposal for libunistring
Date: Sat, 13 Nov 2010 23:38:27 +0100
User-agent: KMail/1.9.9

Hello Ben,

> > Are there other cases where the forward iteration behaviour does
> > not allow an equivalent O(1) backward iteration?
> 
> No, that's the only one.  I have a corrected version of
> u8-mbtouc-aux.c here, along with a draft of a reverse-iterating
> version.  A test program that exhaustively tests all of the
> possibilities in forward and reverse order reports that it works
> OK.

Cool! Very nice.

> Here's the diff for the u8-mbtoc-aux.c that I've got here so far

You find the fixed u8_mbtouc* code already in gnulib:
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=8cada094a301d3f78c086ef0291e8ca88cbe7a1d
Just run an 'autogen.sh' in libunistring, and you can rebuild
libunistring with it. Or work directly in gnulib with a testdir.

Now, I'd like to see your changes to u8-prev.c. And then, of course,
the new backward iteration primitives.

Bruno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]