Dietrich Streifert schrieb:
> Hello List,
>
> I'm in need of parsing numbers (integers and floats) and tried this with 
> the qx.util.format.NumberFormat parse method.
>
> The problem is that as soon as one digit is within the string to parse 
> the parse method succeeds. Strings like
>
> "2hastalavista"
> "2.3.4.5.6"
>
> are valid strings and converted to the value 2.
>
> I need to parse exact.
>
> Is this behaviour of the parser intended or is this a bug?
>
> Thank you for your help.
>   
This sounds like a bug to me. I can't think of any situation where this 
is the intended behaviour. Could you open a bug for this and ideally add 
a test for this to the class "testrunner.test.util.NumberFormat".

Best Fabian


-- 
Fabian Jakobs
JavaScript Framework Developer

1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, 
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to