guile-devel
[Top][All Lists]
Advanced

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

Re: Using libunistring for string comparisons et al


From: Mike Gran
Subject: Re: Using libunistring for string comparisons et al
Date: Tue, 15 Mar 2011 19:03:12 -0700 (PDT)

> From:Alex Shinn <address@hidden>

> > Keep in mind that the UTF-8 forward iterator operation has conditional
> > branches.  Merely the act of advancing from one character to another
> > could take one of four paths, or more if you include the possibility
> > of invalid UTF-8 sequences.
> 
> No, technically you don't need any branching:
> 
>   /* first-byte lookup table encoded as an integer */
>   #define magic 3841982464uL
> ...

Cool.  I stand corrected.

- Mike




reply via email to

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