private void shapeToArabicDigitsWithContext(char[] dest,
int start,
int length,
char digitBase,
boolean lastStrongWasAL) {
UBiDiProps bdp;
try {
bdp=UBiDiProps.getSingleton();
} catch (IOException e) {
///CLOVER:OFF
// This is dependent on the UBiDiProps object
throw new MissingResourceException(e.getMessage(), "(BidiProps)", "");
///CLOVER:ON
}
digitBase -= '0'; // move common adjustment out of loop
for(int i = start + length; --i >= start;) {
char ch = dest[i];
switch (bdp.getClass(ch)) {
case UCharacterDirection.LEFT_TO_RIGHT:
case UCharacterDirection.RIGHT_TO_LEFT:
lastStrongWasAL = false;
break;
case UCharacterDirection.RIGHT_TO_LEFT_ARABIC: