Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-344

CollatorUtils - equivalent of StringUtils, but using Collators

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3
    • Review Patch
    • lang.*
    • None

    Description

      Stephen Kestle has pointed out that "equalsIgnoreCase is an English/ASCII hack" and that using the Collator class provides a more robust String comparison mechanism.

      • Most recently this came up when adding new "ignore case" methods to StringUtils for LANG-326 (also http://tinyurl.com/3d2jjk )
      • Raised in regarding case insensitivity for EqualsBuilder and HashCodeBuilder in LANG-316

      Creating this issue ticket so this doesn't get forgotten

      Attachments

        1. CollatorUtilsTest.java
          7 kB
          Niall Pemberton
        2. CollatorUtils.java
          8 kB
          Niall Pemberton

        Activity

          People

            Unassigned Unassigned
            niallp Niall Pemberton
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: