On 27/07/10 19:14, Paolo Bonzini wrote: > On 07/27/2010 06:06 PM, Pádraig Brady wrote: >> >> I would suggest a new function due to the >> way I see this function called most often. >> I.E. repeatedly with the same character. > > Is this really a bottleneck? i.e., what does u8_uctomb_aux look like in > the profile when do a million u8_strchr calls on an empty string?
Well it would be a bit faster, but mainly a bit easier to use. I.E. one could do stuff like: while ((f=u8_str_u8_chr (s, "–", 3)); cheers, Pádraig.