Tutorial
GNU perfect (gperf) hash function generator makes short work of complex input strings
On this page