[jruby-joni] 105/194: use maxLength
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:31 UTC 2018
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository jruby-joni.
commit 64e7e8f2b9e08f02cc64abc8824ea9cac2a6b7b6
Author: Marcin.Mielzynski <marcin.mielzynski at asseco.pl>
Date: Fri Jan 5 10:14:24 2018 +0100
use maxLength
---
src/org/joni/Analyser.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index 115b229..64d7790 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -537,12 +537,12 @@ final class Analyser extends Parser {
break;
case NodeType.CTYPE:
- max = enc.maxLengthDistance();
+ max = enc.maxLength();
break;
case NodeType.CCLASS:
case NodeType.CANY:
- max = enc.maxLengthDistance();
+ max = enc.maxLength();
break;
case NodeType.BREF:
@@ -2033,7 +2033,7 @@ final class Analyser extends Parser {
int max;
if (sn.isDontGetOptInfo()) {
int n = sn.length(enc);
- max = enc.maxLengthDistance() * n;
+ max = enc.maxLength() * n;
} else {
opt.exb.concatStr(sn.bytes, sn.p, sn.end, sn.isRaw(), enc);
opt.exb.ignoreCase = 1;
@@ -2058,7 +2058,7 @@ final class Analyser extends Parser {
/* no need to check ignore case. (setted in setup_tree()) */
if (cc.mbuf != null || cc.isNot()) {
int min = enc.minLength();
- int max = enc.maxLengthDistance();
+ int max = enc.maxLength();
opt.length.set(min, max);
} else {
for (int i=0; i<BitSet.SINGLE_BYTE_SIZE; i++) {
@@ -2074,7 +2074,7 @@ final class Analyser extends Parser {
case NodeType.CTYPE: {
int min;
- int max = enc.maxLengthDistance();
+ int max = enc.maxLength();
if (max == 1) {
min = 1;
CTypeNode cn = (CTypeNode)node;
@@ -2105,7 +2105,7 @@ final class Analyser extends Parser {
}
case NodeType.CANY: {
- opt.length.set(enc.minLength(), enc.maxLengthDistance());
+ opt.length.set(enc.minLength(), enc.maxLength());
break;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git
More information about the pkg-java-commits
mailing list