Monday, November 08, 2010 at 12:06 AM.


on parseArgs (argstring, adrtable) {
		<<9/16/04; 1:49:40 AM by JES
			<<If running on MacOS, convert argument names to mac characters.
		<<8/18/98; 9:41:51 AM by DW
			<<Site of a major security hole in Frontier. Closed.
				<<It goes all the way back to June 1995
	local (argslist = string.parseHttpArgs (argstring));
	local (i, name, value, adritem);
	loop (i = 1; i <= sizeof (argslist); i = i + 2) {
		name = argslist [i];
		if system.environment.isMac {
			name =  latinToMac.convert (name)};
		value = argslist [i + 1];
		adritem = @adrtable^.[name];
		if defined (adritem^) { //put multiple selections into list
			if typeOf (adritem^) != listType {
				adritem^ = {adritem^}};
			adritem^ = adritem^ + {value}}
		else {
			adritem^ = value}}}

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.