perl-unicode

Re: should \d match *all* the digits?

1999-08-10 19:54:58

on \d+ and feed it to atoi() meaningfully?

I seem to remember atoi as "ASCII-to-Integer" but my man pages are not 
confirming this.  ANSI C would certainly choke on a UTF8 string in this case.
Replacing occurances of atoi with an internal "utoi" (UTF8-to-Ineteger or
Unicode-to-Integer as you like), if feasible, might be in order then.  This
would also open the doors to (at least) integer aritmetic in Perl for the
other Nd characters (mixed script math -fun! :-)

/Daniel

<Prev in Thread] Current Thread [Next in Thread>