Skip to content

Commit

Permalink
move multibyte caseMap to MultiByteEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
lopex committed Apr 20, 2018
1 parent 3b27707 commit 588eedf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/org/jcodings/AbstractEncoding.java
Expand Up @@ -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
*/
Expand Down
5 changes: 5 additions & 0 deletions src/org/jcodings/MultiByteEncoding.java
Expand Up @@ -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;
Expand Down

0 comments on commit 588eedf

Please sign in to comment.