digitStrings[0] = String.valueOf(zeroDigit);
digits[0] = zeroDigit;
- // Propagate digit 1 - 9 only when the input zeroDigit is a
- // Unicode number and its integer value is 0.
-
- if (Character.digit(zeroDigit, 10) == 0) {
- for (int i = 1; i < 10; i++) {
- char d = (char)(zeroDigit + i);
- digitStrings[i] = String.valueOf(d);
- digits[i] = d;
- }
+ // Always propagate to digits 1-9 for JDK and ICU4C consistency.
+ for (int i = 1; i < 10; i++) {
+ char d = (char)(zeroDigit + i);
+ digitStrings[i] = String.valueOf(d);
+ digits[i] = d;
}
+
+ // Update codePointZero: it is simply zeroDigit.
+ codePointZero = zeroDigit;
}
/**