added example for space in indexOfIgnoreCase (#1009)

This commit is contained in:
Anil Kelwalkar 2023-02-11 08:32:54 -07:00 committed by GitHub
parent 47a92f9879
commit 3da149382f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3092,6 +3092,7 @@ public static int indexOfDifference(final CharSequence cs1, final CharSequence c
* StringUtils.indexOfIgnoreCase(null, *) = -1
* StringUtils.indexOfIgnoreCase(*, null) = -1
* StringUtils.indexOfIgnoreCase("", "") = 0
* StringUtils.indexOfIgnoreCase(" ", " ") = 0
* StringUtils.indexOfIgnoreCase("aabaabaa", "a") = 0
* StringUtils.indexOfIgnoreCase("aabaabaa", "b") = 2
* StringUtils.indexOfIgnoreCase("aabaabaa", "ab") = 1