Is there a difference between converting a string of ASCII digits to an integer versus a string of non-ASCII digits to an integer?

Markus Scherer markus.icu at gmail.com
Tue Dec 15 17:45:11 CST 2020


I suspect that Roger is just looking at decimal digits (property gc=Nd
<https://util.unicode.org/UnicodeJsps/list-unicodeset.jsp?a=%5B%3Agc%3DNd%3A%5D%26%5B%3Anv%3D4%3A%5D&g=bc&i=>
).
I believe that they can all be parsed like strings of ASCII digits (and you
can call ICU or other libraries to get at the digit values and other
properties).
I suggest you double-check about the RTL digits (N'Ko & Adlam); please take
a look at the relevant Unicode book chapters.

What's more interesting is handling the grouping and decimal separators
which differ by both language and region.

Best regards,
markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://corp.unicode.org/pipermail/unicode/attachments/20201215/1c1fc063/attachment.htm>


More information about the Unicode mailing list