PARSE-NUMBER

parse-number is a Library of functions which accept an arbitrary string and attempt to parse it into one of the standard Common Lisp number types, if possible, or else it signals an error of type invalid-number.

Exported symbols:

Function PARSE-NUMBER (string &key start end radix)

Function PARSE-REAL-NUMBER (string &key start end radix)

Function PARSE-POSITIVE-REAL-NUMBER (string &key start end radix)

Useful, though unexported:

Variable *TEST-VALUES*
A list of test values for RUN-TESTS to try out.

Function RUN-TESTS ()

Current homepage

I suppose this could be considered Text too.

Download ASDF package from http://common-lisp.net/project/asdf-packaging/parse-number-latest.tar.gz

I'm afraid I don't know how to reach the builder of this library (no email found), but a suggestion: there's an invalid-number condition defined in the library. In order for a person using hte library to handle this condition, it should probably be exported. Additionally, for ease of use by the lazy (like me) inside ignore-errors, I think it would be appropriate if invalid-number were to be an error. I'd argue it's intended to be, since it's invoked using the error function.


This page is linked from: Common Lisp Utilities   philip-jose   text   Wish List  

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively