   var out = String(str); if(!c) { c = '0'; } if(!dir) { dir = 1; } while(out.length < len) { if(dir > 0) { out = c + out; } else { out += c; } } return out; 
   var out = String(str); if(!c) { c = '0'; } if(!dir) { dir = 1; } while(out.length < len) { if(dir > 0) { out = c + out; } else { out += c; } } return out; 
dojo.string.pad = function(/* string */str, /* integer */len/*=2*/, /* string */ c/*='0'*/, /* integer */dir/*=1*/) {	//	summary	//	Pad 'str' to guarantee that it is at least 'len' length with the character 'c' at either the 	//	start (dir=1) or end (dir=-1) of the string	var out = String(str);	if(!c) {		c = '0';	}	if(!dir) {		dir = 1;	}	while(out.length < len) {		if(dir > 0) {			out = c + out;		} else {			out += c;		}	}	return out;	//	string}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js