retval = evaluate(context, arg1, arg2, null);
Argument arg1 = (Argument)args.get(0); Argument arg2 = (Argument)args.get(1);  String s = arg1.toString(); int currentLength = s.length(); int paddedLength = (int)arg2.getNumericValue();  String padding; if (args.size() == 2) padding = " "; else { Argument arg3 = (Argument)args.get(2); padding = arg3.toString(); if (padding.length() == 0) padding = " "; }  if (paddedLength <= 0) {  retval = Argument.emptyString; } else if (currentLength < paddedLength) {  StringBuffer sb = new StringBuffer(paddedLength + padding.length()); sb.append(s); while (sb.length() < paddedLength) { sb.append(padding); } sb.setLength(paddedLength); retval = new Argument(Argument.STRING, sb.toString()); } else if (currentLength == paddedLength) {  retval = arg1; } else {  retval = new Argument(Argument.STRING, s.substring(0, paddedLength)); }
	public Argument evaluate(ContextStack context, Argument arg1, Argument arg2)		throws MapyrusException	{		Argument retval;		retval = evaluate(context, arg1, arg2, null);		return(retval);	}