Package org.apache.commons.codec.binary
Class CharSequenceUtils
java.lang.Object
org.apache.commons.codec.binary.CharSequenceUtils
Operations on CharSequence
that are null
safe.
Copied from Apache Commons Lang r1586295 on April 10, 2014 (day of 3.3.2 release).
- Since:
- 1.10
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean
regionMatches
(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring, int start, int length) Green implementation of regionMatches.
-
Constructor Details
-
CharSequenceUtils
public CharSequenceUtils()
-
-
Method Details
-
regionMatches
static boolean regionMatches(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring, int start, int length) Green implementation of regionMatches.Note: This function differs from the current implementation in Apache Commons Lang where the input indices are not valid. It is only used within this package.
- Parameters:
cs
- theCharSequence
to be processedignoreCase
- whether or not to be case-insensitivethisStart
- the index to start on thecs
CharSequencesubstring
- theCharSequence
to be looked forstart
- the index to start on thesubstring
CharSequencelength
- character length of the region- Returns:
- whether the region matched
-