Reputation: 361
In IBM ICU C library are there any string to number conversion functions. Something like atoi
and atoll
.
I am looking for ICU functions for string conversions - Cross platform, cross compiler and 32 and 64 bit version.
errno
-- But errno
is not set in all platforms For Ex: Windows atoi
. strtol
--> this function is for long data type. There is no function like strtoi
.Upvotes: 1
Views: 752
Reputation: 4350
Use the NumberFormat class (C++) or unum.h interfaces (C) for string to number (i.e. parsing). Instead of errno, ICU uses an error code system (UErrorCode).
HTH
Upvotes: 0