void setCharacters(UnicodeSet set) { fSet = new UnicodeSet(set); fSet.compact(); }
/** * Parse a UnicodeSet out, store it, and return the stand-in character * used to represent it. */ private final char parseSet(String rule, ParsePosition pos) { UnicodeSet set = new UnicodeSet(rule, pos, parseData); if (variableNext >= variableLimit) { throw new RuntimeException("Private use variables exhausted"); } set.compact(); return generateStandInFor(set); }
private void initializePNJSets() { if (PNJ_BINDI_TIPPI_SET != null && PNJ_CONSONANT_SET != null) { return; } PNJ_BINDI_TIPPI_SET = new UnicodeSet(); PNJ_CONSONANT_SET = new UnicodeSet(); PNJ_CONSONANT_SET.add(0x0a15, 0x0a28); PNJ_CONSONANT_SET.add(0x0a2a, 0x0a30); PNJ_CONSONANT_SET.add(0x0a35, 0x0a36); PNJ_CONSONANT_SET.add(0x0a38, 0x0a39); PNJ_BINDI_TIPPI_SET.addAll(PNJ_CONSONANT_SET); PNJ_BINDI_TIPPI_SET.add(0x0a05); PNJ_BINDI_TIPPI_SET.add(0x0a07); PNJ_BINDI_TIPPI_SET.add(0x0a41, 0x0a42); PNJ_BINDI_TIPPI_SET.add(0x0a3f); PNJ_CONSONANT_SET.compact(); PNJ_BINDI_TIPPI_SET.compact(); }