Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(0.24.0) Fix String equalsIgnoreCase() and regionMatches() implementations #11497

Merged

Commits on Dec 16, 2020

  1. Fix String equalsIgnoreCase() and regionMatches() implementations

    According to the javadoc, equalsIgnoreCase() and regionMatches()
    both involve calling
        `Character.toLowerCase(Character.toUpperCase(character))`
    on each character in the string.
    
    Add tests with Turkish characters for equalsIgnoreCase(),
    regionMatches() and compareToIgnoreCase().
    
    Use new helper charValuesEqualIgnoreCase() to compare if two
    characters are equal (case insensitive).
    
    [skip ci]
    
    Signed-off-by: Sharon Wang <sharon-wang-cpsc@outlook.com>
    sharon-wang committed Dec 16, 2020
    Configuration menu
    Copy the full SHA
    8065899 View commit details
    Browse the repository at this point in the history