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

Conversation

sharon-wang
Copy link
Contributor

Cherry-pick of #11423.

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 sharon-wang changed the title Fix String equalsIgnoreCase() and regionMatches() implementations (0.24.0) Fix String equalsIgnoreCase() and regionMatches() implementations Dec 16, 2020
@pshipton pshipton merged commit 37218de into eclipse-openj9:v0.24.0-release Dec 18, 2020
@sharon-wang sharon-wang deleted the streqigcs_v0.24.0 branch January 12, 2021 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants