Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-159

Add IgnoreCase option for accessing header names

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: Parser
    • Labels:

      Description

      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 :

      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.

      Here is the link to PR proposal for review:
      https://github.com/apache/commons-csv/pull/9

      SO question:
      [ 1 ] http://stackoverflow.com/q/29911366/2619091

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              ymedina Yamil Medina
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: