Lines Matching defs:NumericShaper

36  * The <code>NumericShaper</code> class is used to convert Latin-1 (European)
43 * Instances of <code>NumericShaper</code> are typically applied
52 * NumericShaper.getContextualShaper(NumericShaper.ARABIC));
59 * of <code>NumericShaper</code>, as this code snippet demonstrates:<br>
63 * NumericShaper shaper = NumericShaper.getShaper(NumericShaper.ARABIC);
70 * NumericShaper shaper =
71 * NumericShaper.getContextualShaper(NumericShaper.ARABIC |
72 * NumericShaper.TAMIL,
73 * NumericShaper.EUROPEAN);
81 * mask-based ones, such as {@link #ARABIC NumericShaper.ARABIC}, and
82 * enum-based ones, such as {@link NumericShaper.Range#ARABIC}.
86 * NumericShaper.ARABIC | NumericShaper.TAMIL
88 * or creating a {@code Set} with the {@link NumericShaper.Range}
91 * EnumSet.of(NumericShaper.Scirpt.ARABIC, NumericShaper.Range.TAMIL)
97 * mapping is possible, such as {@code NumericShaper.Range.ARABIC}
98 * from/to {@code NumericShaper.ARABIC}. If any unmappable range
99 * values are specified, such as {@code NumericShaper.Range.BALINESE},
108 * <table border=1 cellspacing=3 cellpadding=0 summary="NumericShaper constants precedence.">
111 * <th class="TableHeadingColor"><code>NumericShaper</code> Constants</th>
116 * <td>{@link NumericShaper#ARABIC NumericShaper.ARABIC}<br>
117 * {@link NumericShaper#EASTERN_ARABIC NumericShaper.EASTERN_ARABIC}</td>
118 * <td>{@link NumericShaper#EASTERN_ARABIC NumericShaper.EASTERN_ARABIC}</td>
121 * <td>{@link NumericShaper.Range#ARABIC}<br>
122 * {@link NumericShaper.Range#EASTERN_ARABIC}</td>
123 * <td>{@link NumericShaper.Range#EASTERN_ARABIC}</td>
127 * <td>{@link NumericShaper.Range#TAI_THAM_HORA}<br>
128 * {@link NumericShaper.Range#TAI_THAM_THAM}</td>
129 * <td>{@link NumericShaper.Range#TAI_THAM_THAM}</td>
136 public final class NumericShaper implements java.io.Serializable {
138 * A {@code NumericShaper.Range} represents a Unicode range of a
140 * NumericShaper.Range#THAI} range has the Thai digits, THAI DIGIT
144 * mask-based values (e.g., {@link NumericShaper#ARABIC}), and
148 * NumericShaper.getContextualShaper(NumericShaper.ARABIC |
149 * NumericShaper.TAMIL,
150 * NumericShaper.EUROPEAN);
154 * NumericShaper.getContextualShaper(EnumSet.of(
155 * NumericShaper.Range.ARABIC,
156 * NumericShaper.Range.TAMIL),
157 * NumericShaper.Range.EUROPEAN);
469 * ranges. Use {@code EmunSet.allOf(NumericShaper.Range.class)} to
563 // cache for the NumericShaper.Range version
925 public static NumericShaper getShaper(int singleRange) {
927 return new NumericShaper(key, singleRange);
936 * NumericShaper.Range} constant.
937 * @return a non-contextual {@code NumericShaper}.
941 public static NumericShaper getShaper(Range singleRange) {
942 return new NumericShaper(singleRange, EnumSet.of(singleRange));
951 * <code>NumericShaper.ARABIC | NumericShaper.THAI</code>. The
959 public static NumericShaper getContextualShaper(int ranges) {
961 return new NumericShaper(EUROPEAN_KEY, ranges);
980 public static NumericShaper getContextualShaper(Set<Range> ranges) {
981 NumericShaper shaper = new NumericShaper(Range.EUROPEAN, ranges);
992 * <code>NumericShaper.ARABIC | NumericShaper.THAI</code>. The
996 * <code>NumericShaper.EUROPEAN</code>
1001 public static NumericShaper getContextualShaper(int ranges, int defaultContext) {
1004 return new NumericShaper(key, ranges);
1016 * {@code NumericShaper.Range.EUROPEAN}
1022 public static NumericShaper getContextualShaper(Set<Range> ranges,
1027 NumericShaper shaper = new NumericShaper(defaultContext, ranges);
1035 private NumericShaper(int key, int mask) {
1040 private NumericShaper(Range defaultContext, Set<Range> ranges) {
1105 * characters, such as <code>NumericShaper.EUROPEAN</code>
1138 * such as {@code NumericShaper.Range.EUROPEAN}
1211 * this {@code NumericShaper} that will be shaped.
1261 synchronized (NumericShaper.class) {
1331 // NumericShaper. A deserialized NumericShaper might have
1341 * <code>NumericShaper</code> and shapes identically to this one,
1345 * NumericShaper ns1 = NumericShaper.getShaper(NumericShaper.ARABIC);
1346 * NumericShaper ns2 = NumericShaper.getShaper(NumericShaper.Range.ARABIC);
1351 * <code>NumericShaper</code>
1353 * of <code>NumericShaper</code> and shapes in the same way;
1360 NumericShaper rhs = (NumericShaper)o;
1486 * Converts the {@code NumericShaper.Range} enum-based parameters,