This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git
The following commit(s) were added to refs/heads/master by this push:
new 4152250 Add isMatch(CharSequence, int)
4152250 is described below
commit 415225019d255bb14985510cf862358194c356f8
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Jun 26 16:03:18 2020 -0400
Add isMatch(CharSequence, int)
Add isMatch(CharSequence, int, int, int)
---
src/main/java/org/apache/commons/text/matcher/StringMatcher.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/apache/commons/text/matcher/StringMatcher.java
b/src/main/java/org/apache/commons/text/matcher/StringMatcher.java
index e6d0b1f..8fa26f1 100644
--- a/src/main/java/org/apache/commons/text/matcher/StringMatcher.java
+++ b/src/main/java/org/apache/commons/text/matcher/StringMatcher.java
@@ -127,6 +127,7 @@ public interface StringMatcher {
* @param bufferStart the first active index in the buffer, valid in
{@code buffer}.
* @param bufferEnd the end index (exclusive) of the active buffer, valid
in {@code buffer}.
* @return The number of matching characters, zero if there is no match.
+ * @since 1.9
*/
default int isMatch(final CharSequence buffer, final int start, final int
bufferStart, final int bufferEnd) {
return isMatch(AbstractStringMatcher.toCharArray(buffer), start,
bufferEnd, bufferEnd);