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

Add IgnoreCase option for accessing header names

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • Parser

    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

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

            Dates

              Created:
              Updated:
              Resolved: