src/com/larvalabs/svgandroid/SVGParser.java
private static Matrix parseTransform(String s) {
		//Log.d(TAG, s);
		Matrix matrix = new Matrix();
		while (true) {
			parseTransformItem(s, matrix);
			// Log.i(TAG, "Transformed: (" + s + ") " + matrix);
			int rparen = s.indexOf(")");
			if (rparen > 0 && s.length() > rparen + 1) {
				s = s.substring(rparen + 1).replaceFirst("[\\s,]*", "");
			} else {
				break;
			}
		}
		//Log.d(TAG, matrix.toShortString());
		return matrix;
	}
// delims are whitespace or ,'s
delims are whitespace or ,'s
delims are whitespace or ' s
private static Matrix parseTransform(String 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;
	}
private static Matrix parseTransform ( String 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
delims are whitespace or ' s
//Log.d(TAG, s); // Log.i(TAG, "Transformed: (" + s + ") " + matrix); //Log.d(TAG, matrix.toShortString());