Bug 149922 Image builder - URI and file source type are treated as same
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/StringUtil.java
}
			
			value = sb.toString( );
		}
		
		int pos = value.indexOf( '.' );
		if ( pos != -1 )
		{
			if ( value.length( ) - pos - 1 > fNumber )
				value = value.substring( 0, pos + fNumber + 1 );
			
			int i = 0;
			for ( ; i < fNumber; i++ )
			{
				if ( value.charAt( value.length( ) - i - 1 ) != '0' )
					break;
			}
			value = value.substring( 0, value.length( ) - i );
			
			if ( value.charAt( value.length( ) - 1 ) == '.' )
				value = value.substring( 0, value.length( ) - 1 );
		}
		return value;
	}
	/**
	 * Compares the given two versions. The version is the string containing
	 * numbers and periods. For example:
	 * <p>
	 * <ul>
	 * <li>12