Skip to content

Commit

Permalink
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/org/jcodings/AbstractEncoding.java
Original file line number Diff line number Diff line change
@@ -157,12 +157,6 @@ int singleByteAsciiOnlyCaseMap(IntHolder flagP, byte[]bytes, IntHolder pp, int e
return toP - toStart;
}

@Override
public int caseMap(IntHolder flagP, byte[] bytes, IntHolder pp, int end, byte[] to, int toP, int toEnd) {
return asciiOnlyCaseMap(flagP, bytes, pp, end, to, toP, toEnd);
}


/** onigenc_minimum_property_name_to_ctype
* notably overridden by unicode encodings
*/
5 changes: 5 additions & 0 deletions src/org/jcodings/MultiByteEncoding.java
Original file line number Diff line number Diff line change
@@ -122,6 +122,11 @@ protected final int mbnMbcToCode(byte[]bytes, int p, int end) {
return n;
}

@Override
public int caseMap(IntHolder flagP, byte[] bytes, IntHolder pp, int end, byte[] to, int toP, int toEnd) {
return asciiOnlyCaseMap(flagP, bytes, pp, end, to, toP, toEnd);
}

protected final int mbnMbcCaseFold(int flag, byte[]bytes, IntHolder pp, int end, byte[]lower) {
int p = pp.value;
int lowerP = 0;

0 comments on commit 588eedf

Please sign in to comment.