Peter,

NeoNumberParser is a simple number (integer/float) parser that is part of 
NeoCSV (it was based on the JSON number parsing code). It was added because I 
wanted a number parser that makes little demands on the stream it parses from 
(just 1 character peek ahead, no arbitrary backtracking, limited API). It was 
not meant to be very powerful.

If you check the references, you see that where it is used in NeoCSVReader, you 
could easily substitute another parser.

Now, I can understand where/how your suggestions would make sense. Maybe you 
can try subclassing and make your own variant (first) ? BTW, you not only need 
to set the thousands separator, but the decimal separator too, I guess.

Sven

> On 05 Jul 2016, at 14:17, Peter Uhnák <i.uh...@gmail.com> wrote:
> 
> Hi,
> 
> is there any plan for NeoNumberParser do add localization support?
> 
> e.g.
> 
> NeoNumberParser new
>     thousandsSeparator: $,; "common in us data"
>     parse: '12,230'
> 
> => 
> 
> 12230
> 
> NeoNumberParser new
>     decimalSeparator: $,; "common in eu data"
>     parse: '12,230'
> 
> => 
> 
> 12.230
> 
> Thanks,
> Peter


Reply via email to