private void setEncoding(String name) { EncodingDB.Entry e = EncodingDB.getEncodings().get(Bytes.toBytes(name)); if (e != null) { encoding = e.getEncoding(); } else { throw new IllegalCharsetNameException(name); } } }
private boolean trFind(int c, boolean[]table, TrTables tables) { if (c < TRANS_SIZE) { return table[c]; } else { if (tables != null) { if (tables.del != null) { if (tables.noDel == null || tables.noDel.get(c) == null) return true; } else if (tables.noDel != null && tables.noDel.get(c) != null) return false; } return table[TRANS_SIZE]; } }
private NameEntry nameFind(byte[]name, int nameP, int nameEnd) { if (nameTable != null) return nameTable.get(name, nameP, nameEnd); return null; }
public int numberOfNames() { return nameTable == null ? 0 : nameTable.size(); }
private void setEncoding(String name) { EncodingDB.Entry e = EncodingDB.getEncodings().get(Bytes.toBytes(name)); if (e != null) { encoding = e.getEncoding(); } else { throw new IllegalCharsetNameException(name); } } }
private boolean trFind(int c, boolean[]table, TrTables tables) { if (c < TRANS_SIZE) { return table[c]; } else { if (tables != null) { if (tables.del != null) { if (tables.noDel == null || tables.noDel.get(c) == null) return true; } else if (tables.noDel != null && tables.noDel.get(c) != null) return false; } return table[TRANS_SIZE]; } }
private NameEntry nameFind(byte[]name, int nameP, int nameEnd) { if (nameTable != null) return nameTable.get(name, nameP, nameEnd); return null; }
public Entry findEncodingEntry(byte[] bytes) { return encodings.get(bytes); }
private int trCode(int c, int[]trans, IntHash<Integer> hash, boolean cflag, int last, boolean set) { if (c < TRANS_SIZE) { return trans[c]; } else if (hash != null) { Integer tmp = hash.get(c); if (tmp == null) { return cflag ? last : -1; } else { return cflag ? -1 : tmp; } } else { return cflag && set ? last : -1; } }
public Entry findAliasEntry(byte[] bytes) { return aliases.get(bytes); }
private static int trCode(int c, int[]trans, IntHash<Integer> hash, boolean cflag, int last, boolean set) { if (c < StringSupport.TRANS_SIZE) { return trans[c]; } else if (hash != null) { Integer tmp = hash.get(c); if (tmp == null) { return cflag ? last : -1; } else { return cflag ? -1 : tmp; } } else { return cflag && set ? last : -1; } }
public Entry findAliasEntry(byte[] bytes) { return aliases.get(bytes); }
static int caseFold(int codePoint) { int[] to = Unicode10Data.FoldHash.get(codePoint); return to != null ? to[0] : -1; }
public Entry findEncodingEntry(byte[] bytes) { return encodings.get(bytes); }
private int trCode(int c, int[]trans, IntHash<Integer> hash, boolean cflag, int last, boolean set) { if (c < TRANS_SIZE) { return trans[c]; } else if (hash != null) { Integer tmp = hash.get(c); if (tmp == null) { return cflag ? last : -1; } else { return cflag ? -1 : tmp; } } else { return cflag && set ? last : -1; } }
public Entry findAliasEntry(byte[] bytes) { return aliases.get(bytes); }
private static int trCode(int c, int[]trans, IntHash<Integer> hash, boolean cflag, int last, boolean set) { if (c < StringSupport.TRANS_SIZE) { return trans[c]; } else if (hash != null) { Integer tmp = hash.get(c); if (tmp == null) { return cflag ? last : -1; } else { return cflag ? -1 : tmp; } } else { return cflag && set ? last : -1; } }
public Entry findAliasEntry(byte[] bytes) { return aliases.get(bytes); }
static int caseFold(int codePoint) { int[] to = Unicode10Data.FoldHash.get(codePoint); return to != null ? to[0] : -1; }
public Entry findEncodingEntry(byte[] bytes) { return encodings.get(bytes); }