<div dir="ltr">What do you mean by "non-ASCII digits"? Things like superscript and subscript versions of the usual Western "Arabic' numbers? Or are you talking about numbers like those of Chinese, roman numerals, Tamil, etc.? In the case of the former, once you map the digits to their standard forms, the algorithm is the same. In the case of the latter, no, in many cases very different algorithms are required.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 14, 2020 at 12:28 PM Roger L Costello via Unicode <<a href="mailto:unicode@unicode.org">unicode@unicode.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Folks,<br>
<br>
As I understand it, when the C programming language was created it just used ASCII. Programs written in C used ASCII digits.<br>
<br>
Nowadays C supports Unicode and Unicode contains more digits than just the ASCII digits. (I think) modern C programs can express numbers using strings of non-ASCII digits.<br>
<br>
Questions:<br>
<br>
1. Is the algorithm for converting a string that contains non-ASCII digits different than the algorithm for converting a string containing ASCII digits?<br>
<br>
2. The C function atoi() converts a string of digits to a number. I have seen the source code for atoi(). The source code that I saw was dated around the year 2000. Can you point me to the modern source code for atoi()?<br>
<br>
/Roger<br>
<br>
</blockquote></div>