Libuninum

Libuninum is a library for converting Unicode strings to numbers.
Download

Libuninum Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Bill Poser
  • Publisher web site:
  • http://billposer.org/Software/UnicodeDataBrowser.html

Libuninum Tags


Libuninum Description

Libuninum is a library for converting Unicode strings to numbers. Libuninum is a library for converting Unicode strings to numbers. Standard functions like strtoul and strtod do this for numbers written in the usual Western number system using the Indo-Arabic numerals, but they do not handle other number systems.The main functions take as input a UTF-32 Unicode string and compute the corresponding unsigned integer. For example, they will convert the Chinese string 五十九万四千三百二十一 to the integer 594,321 and the Devanagari string ७८४९२ to the integer 78,492. Internal computation is done using arbitrary precision arithmetic, so there is no limit on the size of the integer that can be converted.The value of the string is returned in one of two forms. One option is a string of ASCII characters containing the decimal representation of the integer using the Indo-Arabic digits. This option has the virtue of avoiding any possibility of overflow or truncation. The other option is to obtain the value as an unsigned long integer.If you are going to do internal calculations, this is probably the most convenient option, but some numbers (in fact, infinitely many) will not fit into an unsigned long integer. The library guarantees that no overflow or truncation will occur; if the number will not fit, it sets an error flag and returns 0.What's New in This Release:· This release adds support for Kayah Li, Lepcha, Ol Chiki, Saurashtra, Shan, Sundanese, and Vai.· Full width numerals and hex digits are now accepted on input of Western numbers.


Libuninum Related Software