> From:Alex Shinn <alexsh...@gmail.com> > > 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