[Top][All Lists]
[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
- Re: Using libunistring for string comparisons et al, (continued)
- Re: Using libunistring for string comparisons et al, Ludovic Courtès, 2011/03/20
- Re: Using libunistring for string comparisons et al, Andy Wingo, 2011/03/30
- Re: Using libunistring for string comparisons et al, Peter Brett, 2011/03/29
- Re: Using libunistring for string comparisons et al, Andy Wingo, 2011/03/29
- Re: Using libunistring for string comparisons et al, Ludovic Courtès, 2011/03/29
- Re: Using libunistring for string comparisons et al, Peter Brett, 2011/03/31
- Re: Using libunistring for string comparisons et al, Ludovic Courtès, 2011/03/31
- Re: Using libunistring for string comparisons et al, Andy Wingo, 2011/03/30
- Re: Using libunistring for string comparisons et al, Alex Shinn, 2011/03/15
Re: Using libunistring for string comparisons et al, Mike Gran, 2011/03/15
Re: Using libunistring for string comparisons et al,
Mike Gran <=
Re: Using libunistring for string comparisons et al, Mike Gran, 2011/03/16
Re: Using libunistring for string comparisons et al, Mike Gran, 2011/03/17