Lines Matching refs:mask

77  * <p><b>Bit mask- and enum-based Unicode ranges</b></p>
81 * mask-based ones, such as {@link #ARABIC NumericShaper.ARABIC}, and
83 * Multiple ranges can be specified by ORing bit mask-based constants,
93 * The enum-based ranges are a super set of the bit mask-based ones.
144 * mask-based values (e.g., {@link NumericShaper#ARABIC}), and
145 * supports more Unicode ranges than the bit mask-based ones. For
146 * example, the following code using the bit mask:
334 private static Set<Range> maskToRangeSet(int mask) {
338 if ((mask & (1 << i)) != 0) {
376 private int mask;
381 * mask-based API.
389 * shape. {@code null} for the bit mask-based API.
468 * <p>This constant specifies all of the bit mask-based
906 private static int getKeyFromMask(int mask) {
908 while (key < NUM_KEYS && ((mask & (1<<key)) == 0)) {
911 if (key == NUM_KEYS || ((mask & ~(1<<key)) != 0)) {
912 throw new IllegalArgumentException("invalid shaper: " + Integer.toHexString(mask));
982 shaper.mask = CONTEXTUAL_MASK;
1028 shaper.mask = CONTEXTUAL_MASK;
1035 private NumericShaper(int key, int mask) {
1037 this.mask = mask;
1187 return (mask & CONTEXTUAL_MASK) != 0;
1200 * <p>Note that this method supports only the bit mask-based
1206 return mask & ~CONTEXTUAL_MASK;
1220 return Range.maskToRangeSet(mask);
1253 if ((mask & (1<<ctxKey)) == 0) {
1274 if (((mask & EASTERN_ARABIC) != 0) &&
1278 } else if (((mask & ARABIC) != 0) &&
1282 } else if ((mask & (1<<ctxKey)) == 0) {
1328 int hash = mask;
1342 * regardless of the range representations, the bit mask or the
1368 && rangeSet.equals(Range.maskToRangeSet(rhs.mask))
1371 Set<Range> rset = Range.maskToRangeSet(mask);
1377 return rhs.mask == mask && rhs.key == key;
1405 if ((mask & (1 << i)) != 0) {
1487 * if any, to the bit mask-based counterparts and writes this
1489 * bit mask-based counterparts are ignored in the conversion.
1503 mask |= Range.toRangeMask(rangeSet);