private void shapeNonContextually ( char [ ] text , int start , int count ) { int base ; char minDigit = ' ' ; if ( shapingRange != null ) { base = shapingRange . getDigitBase ( ) ; minDigit += shapingRange . getNumericBase ( ) ; } else { base = bases [ key ] ; if ( key == ETHIOPIC_KEY ) { minDigit ++ ; // Ethiopic doesn't use decimal zero } } for ( int i = start , e = start + count ; i < e ; ++ i ) { char c = text [ i ] ; if ( c >= minDigit && c <= ' ' ) { text [ i ] = ( char ) ( c + base ) ; } } }
Perform non - contextual shaping .