tools.rb - Utility functions
Copyright (C) 2005-2008 Masao Mutoh
You may redistribute it and/or modify it under the same license terms as Ruby or LGPL.