Functions | |
__utilities_h_extern__ unsigned int | hash (const std::string &str) |
A simple hash function. | |
__utilities_h_extern__ std::string | itoa (int n) |
Convert an integer to a string. |
This namespace is a place for generic helper functions that are useful in many places and usually come from other sources.
|
A simple hash function. This function generates a unique integer for a string. It is useful for passwords and many other things. This particular hash function is from an example on www.partow.net, and is under the Common Public License from http://www.opensource.org/licenses/cpl.php . All credit goes to them for such a wonderfully simple function.
|
|
Convert an integer to a string. This function is copyright 2006 Priyadarsan, with the original code from http://www.freebookzone.com/others/itoa.h. It is only slightly modified to use std strings.
|