public void shape ( char [ ] text , int start , int count , int context ) { checkParams ( text , start , count ) ; if ( isContextual ( ) ) { int ctxKey = getKeyFromMask ( context ) ; if ( rangeSet == null ) { shapeContextually ( text , start , count , ctxKey ) ; } else { shapeContextually ( text , start , count , Range . values ( ) [ ctxKey ] ) ; } } else { shapeNonContextually ( text , start , count ) ; } }
Converts the digits in the text that occur between start and start + count using the provided context . Context is ignored if the shaper is not a contextual shaper .