Skip to content
Commits on Source (23)
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<extension>
<groupId>io.takari.polyglot</groupId>
<artifactId>polyglot-yaml</artifactId>
<version>0.3.0</version>
</extension>
</extensions>
jcodings (1.0.40-1) unstable; urgency=medium
* New upstream release
* debian/patches
- refresh patch
-- Hideki Yamane <henrich@debian.org> Sat, 22 Sep 2018 14:51:30 +0900
jcodings (1.0.34-1) unstable; urgency=medium
* New upstream release
......
......@@ -6,7 +6,7 @@ Last-Update: 2018-09-17
--- a/pom.xml
+++ b/pom.xml
@@ -6,11 +6,6 @@
<version>1.0.34</version>
<version>1.0.40</version>
<name>JCodings</name>
<description>Byte based encoding support library for java</description>
- <parent>
......
......@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jruby.jcodings</groupId>
<artifactId>jcodings</artifactId>
<version>1.0.34</version>
<version>1.0.40</version>
<name>JCodings</name>
<description>Byte based encoding support library for java</description>
<parent>
......@@ -101,7 +101,7 @@
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
<version>2.22.0</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
</configuration>
......@@ -112,7 +112,7 @@
<profile>
<id>release-on-9</id>
<activation>
<jdk>9</jdk>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
......
# coding: utf-8
REPO_PATH = ARGV.first || '/usr/src/ruby-2.5.0' # path to ruby repo
REPO_PATH = ARGV.first || '/usr/src/ruby-2.5.1' # path to ruby repo
SECTION_NAME = "rdata"
UNICODE_VERSION = "10.0.0"
SRC_DIR = "../src/org/jcodings"
......
......@@ -85,7 +85,6 @@ abstract class AbstractEncoding extends Encoding {
asciiApplyAllCaseFold(flag, fun, arg);
}
protected static final CaseFoldCodeItem[] EMPTY_FOLD_CODES = new CaseFoldCodeItem[]{};
protected final CaseFoldCodeItem[]asciiCaseFoldCodesByString(int flag, byte[]bytes, int p, int end) {
int b = bytes[p] & 0xff;
......@@ -94,7 +93,7 @@ abstract class AbstractEncoding extends Encoding {
} else if (0x61 <= b && b <= 0x7a) {
return new CaseFoldCodeItem[]{CaseFoldCodeItem.create(1, b - 0x20)};
} else {
return EMPTY_FOLD_CODES;
return CaseFoldCodeItem.EMPTY_FOLD_CODES;
}
}
......
......@@ -20,6 +20,8 @@
package org.jcodings;
public final class CaseFoldCodeItem {
public static final CaseFoldCodeItem[] EMPTY_FOLD_CODES = new CaseFoldCodeItem[]{};
public final int byteLen;
public final int code[];
......
......@@ -106,7 +106,7 @@ public abstract class CaseFoldMapEncoding extends SingleByteEncoding {
}
}
}
return EMPTY_FOLD_CODES;
return CaseFoldCodeItem.EMPTY_FOLD_CODES;
}
@Override
......
......@@ -19,7 +19,7 @@
*/
package org.jcodings;
public class CodeRange {
public final class CodeRange {
public static boolean isInCodeRange(int[]p, int code) {
return isInCodeRange(p, 0, code);
}
......
......@@ -23,7 +23,7 @@ import org.jcodings.exception.ErrorMessages;
import org.jcodings.exception.InternalException;
import org.jcodings.util.CaseInsensitiveBytesHash;
public class EncodingDB {
public final class EncodingDB {
public static final class Entry {
private static int count;
......
......@@ -85,7 +85,7 @@ public final class ISO8859_1Encoding extends ISOEncoding {
return new CaseFoldCodeItem[]{CaseFoldCodeItem.create(1, b - 0x20)};
}
}
return EMPTY_FOLD_CODES;
return CaseFoldCodeItem.EMPTY_FOLD_CODES;
}
@Override
......
......@@ -407,7 +407,7 @@ public abstract class UnicodeEncoding extends MultiByteEncoding {
}
}
if (items == null || n == 0) return EMPTY_FOLD_CODES;
if (items == null || n == 0) return CaseFoldCodeItem.EMPTY_FOLD_CODES;
if (n < items.length) {
CaseFoldCodeItem [] tmp = new CaseFoldCodeItem[n];
System.arraycopy(items, 0, tmp, 0, n);
......