Jacek Caban jacek@codeweavers.com writes:
On 3/3/11 2:45 PM, Alexandre Julliard wrote:
Jacek Cabanjacek@codeweavers.com writes:
- /* FIXME: Implement in more generic and safe way */
- for(ptr = name; *ptr&& isdigitW(*ptr); ptr++)
i = i*10 + (*ptr-'0');
What's wrong with strtoulW?
We don't want to use strings like "+1" or with leasing spaces for indexed access.
You can check the first character before passing it to strtoulW, that would already be better than doing it all by hand. Note that isdigitW won't do the right thing, not all Unicode digits are between '0' and '9'.