Daniel Bratell wrote:

> Jon Smirl wrote:
> 
>> What is the replacement for this in the new string APIs?
>>
>>   PRInt32 nTerm = str.FindCharInSet( L" ;", nColon );
> 
> 
> There isn't one yet unless things have been happening the last couple of 
> weeks. You have to do it yourself which is a shame, or if the string is 
> short you can search for both ' ' and ';' and see which if any comes first.


Also see http://bugzilla.mozilla.org/show_bug.cgi?id=92709 for an 
algorithmic tweak that can make FindCharInSet slightly faster.
/Daniel


Reply via email to