[jruby-joni] 99/194: refactor CaseFoldCodeItem
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 2f2f71c859098444cc1c26c47643b9603951b7b1
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Wed Jan 3 20:10:38 2018 +0100
refactor CaseFoldCodeItem
---
src/org/joni/Analyser.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index a39fb7b..98a4dd2 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -1518,7 +1518,7 @@ final class Analyser extends Parser {
private boolean isCaseFoldVariableLength(int itemNum, CaseFoldCodeItem[] items, int slen) {
for(int i = 0; i < itemNum; i++) {
- if (items[i].byteLen != slen || items[i].codeLen != 1) return true;
+ if (items[i].byteLen != slen || items[i].code.length != 1) return true;
}
return false;
}
@@ -1552,7 +1552,7 @@ final class Analyser extends Parser {
for (int i=0; i<itemNum; i++) {
snode = new StringNode();
- for (int j = 0; j < items[i].codeLen; j++) snode.catCode(items[i].code[j], enc);
+ for (int j = 0; j < items[i].code.length; j++) snode.catCode(items[i].code[j], enc);
ConsAltNode an = newAltNode(null, null);
if (items[i].byteLen != slen) {
--
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