Bug 182061 Data engine changes to support result set sharing
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/GroupOnRowTest.java
}
	
	/**
	 * Format string to specified length, if the length of input string is
	 * larger than expected length, then input string will be directly return
	 * without any format.
	 * 
	 * @param str
	 *            needs to be formatted string
	 * @param length
	 *            expected length
	 * @return formatted string
	 */
	private static String formatStr( String inputStr, int length )
	{
		if ( inputStr == null )
			return null;
		int inputLen = inputStr.length( );
		if ( inputLen >= length )
			return inputStr;
		int appendLen = length - inputLen;
		char[] appendChar = new char[appendLen];
		for ( int i = 0; i < appendLen; i++ )
		{
			appendChar[i] = ' ';
		}
		String result = inputStr + new String( appendChar );
		return result;
	}
}