You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2015/10/14 21:50:05 UTC
[jira] [Resolved] (CSV-159) Add IgnoreCase option for accessing
header names
[ https://issues.apache.org/jira/browse/CSV-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory resolved CSV-159.
------------------------------
Resolution: Fixed
Assignee: Gary Gregory
Fix Version/s: 1.3
Patch applied.
Thank you Yamil.
Committed revision 1708685.
Please verify trunk and close this issue if satisfied.
> Add IgnoreCase option for accessing header names
> ------------------------------------------------
>
> Key: CSV-159
> URL: https://issues.apache.org/jira/browse/CSV-159
> Project: Commons CSV
> Issue Type: New Feature
> Components: Parser
> Affects Versions: Review
> Reporter: Yamil Medina
> Assignee: Gary Gregory
> Priority: Minor
> Labels: features, newbie
> Fix For: 1.3
>
>
> I added a feature, the possibility to use "ignorecase" access in HeaderMapping.
> The change is basically the use of an instance of _{{TreeMap}}_ + _{{String.CASE_INSENSITIVE_ORDER}}_ comparator, when filling _{{headerMap}}_ :
> bq. {{new TreeMap<String, Integer>(String.CASE_INSENSITIVE_ORDER)}}
> this based on a new flag in _{{CSVFormat}}_ class, that handles this optional format.
> The feature was originally issued by this SO Question [ 1 ], plus the encouragement made in my response to contribute or propose the change.
> {quote}
> Here is the link to PR proposal for review:
> https://github.com/apache/commons-csv/pull/9
> {quote}
>
> {quote}
> SO question:
> [ 1 ] http://stackoverflow.com/q/29911366/2619091
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)