static Matrix parseTransform ( String s ) { //Log.d(TAG, s); Matrix matrix = new Matrix ( ) ; while ( true ) { parseTransformItem ( s , matrix ) ; int rparen = s . indexOf ( ")" ) ; if ( rparen > 0 && s . length ( ) > rparen + 1 ) { s = s . substring ( rparen + 1 ) . replaceFirst ( "[\\s,]*" , "" ) ; } else { break ; } } return matrix ; }
delims are whitespace or s