Adding javadoc for the new regionMatchesSequence method

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1089734 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2011-04-07 04:37:52 +00:00
parent 5a7b17cf3e
commit b9b11b94c8
1 changed files with 11 additions and 1 deletions

View File

@ -6505,7 +6505,6 @@ static int lastIndexOfSequence(CharSequence cs, CharSequence searchChar, int sta
* @param cs the {@code CharSequence} to be processed * @param cs the {@code CharSequence} to be processed
* @return the resulting char array * @return the resulting char array
*/ */
//
static char[] toCharArraySequence(CharSequence cs) { static char[] toCharArraySequence(CharSequence cs) {
if (cs instanceof String) { if (cs instanceof String) {
return ((String) cs).toCharArray(); return ((String) cs).toCharArray();
@ -6519,6 +6518,17 @@ static char[] toCharArraySequence(CharSequence cs) {
} }
} }
/**
* Green implementation of regionMatches.
*
* @param cs the {@code CharSequence} to be processed
* @param ignoreCase whether or not to be case insensitive
* @param thisStart the index to start on the {@code cs} CharSequence
* @param substring the {@code CharSequence} to be looked for
* @param start the index to start on the {@code substring} CharSequence
* @param length character length of the region
* @return whether the region matched
*/
static boolean regionMatchesSequence(CharSequence cs, boolean ignoreCase, int thisStart, static boolean regionMatchesSequence(CharSequence cs, boolean ignoreCase, int thisStart,
CharSequence substring, int start, int length) CharSequence substring, int start, int length)
{ {