Package driver :: Module utils
[show private | hide private]
[frames | no frames]

Module driver.utils

This has a series of utility functions that aren't related to specific classes in the application. They fall into the following classes: string manipulation and argument parsing.
Classes
PriorityQueue This is a pretty basic priority queue.

Function Summary
string chomp(text)
Removes all '\r' and '\n' from the input string.
list of tuples of (string, string) parse_args(args)
Takes in a list of args and parses it out into a hashmap of arg-name to value(s).

Function Details

chomp(text)

Removes all '\r' and '\n' from the input string.
Parameters:
text - the text to chomp
           (type=string)
Returns:
the chomped text
           (type=string)

parse_args(args)

Takes in a list of args and parses it out into a hashmap of arg-name to value(s).
Parameters:
args - the list of command-line arguments
           (type=list of strings)
Returns:
list of tuples of (arg, value) pairings
           (type=list of tuples of (string, string))

Generated by Epydoc 2.0 on Wed Jan 21 21:00:06 2004 http://epydoc.sf.net