[
https://issues.apache.org/jira/browse/CSV-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200494#comment-14200494
]
Daniel Fernández commented on CSV-91:
-------------------------------------
> Why would this be needed by a client application?
We need it, for example, in order to determine whether a number-only String
that comes from the parser was originally meant to be a String or maybe not.
CSV allows data to appear unquoted, and in the case of numbers this might make
the difference between numbers that are really that or mere Strings with only
number characters. e.g. "...,23,..." vs "...,'23',..."
The fact that the second piece of data is quoted hints the client application
that the number was originally meant to be a text, and not a number. Note that
the first syntax, unquoted, doesn't really declare anything as both syntaxes
--quoted and unquoted-- are possible for texts.
> Distinguish quoted tokens?
> --------------------------
>
> Key: CSV-91
> URL: https://issues.apache.org/jira/browse/CSV-91
> Project: Commons CSV
> Issue Type: New Feature
> Reporter: Sebb
> Priority: Minor
>
> Might be useful to be able to distinguish which tokens were quoted and which
> were not.
> This would need to apply more that one token type, so would be best as a
> separate flag.
> Not sure how this might be stored in the CSVRecord class; perhaps a separate
> boolean array?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)