Improved handling on special characters in names

This commit is contained in:
Robert Osfield 2005-11-14 17:15:58 +00:00
parent a687ab72dc
commit 04c368b5ed

View File

@ -68,11 +68,13 @@ bool validName(const std::string& first)
std::string typoCorrection(const std::string& name) std::string typoCorrection(const std::string& name)
{ {
#if 0 #if 0
if (name=="") return "Tarantilils";
if (name=="") return ""; if (name=="") return "";
if (name=="") return ""; if (name=="") return "";
if (name=="") return ""; if (name=="") return "";
#endif #endif
if (name=="Sjolie") return "Sjölie";
if (name=="Jose") return "José";
if (name=="Tarantilils") return "Tarantilis";
if (name=="Heirtlein") return "Hertlein"; if (name=="Heirtlein") return "Hertlein";
if (name=="Fredric") return "Frederic"; if (name=="Fredric") return "Frederic";
if (name=="Geof") return "Geoff"; if (name=="Geof") return "Geoff";
@ -101,7 +103,7 @@ std::string typoCorrection(const std::string& name)
if (name=="Johhansen") return "Johansen"; if (name=="Johhansen") return "Johansen";
if (name=="Johnansen") return "Johansen"; if (name=="Johnansen") return "Johansen";
if (name=="Jolley") return "Jolly"; if (name=="Jolley") return "Jolly";
if (name=="J") return "Jose"; if (name=="J") return "José";
if (name=="Keuhne") return "Kuehne"; if (name=="Keuhne") return "Kuehne";
if (name=="Kheune") return "Kuehne"; if (name=="Kheune") return "Kuehne";
if (name=="Lashari") return "Lashkari"; if (name=="Lashari") return "Lashkari";