Basic soundex in C, from
https://www.codedrome.com/the-soundex-algorithm-in-c/
void soundex(char* name, char* s) { int si = 1; char c; // ABCDEFGHIJKLMNOPQRSTUVWXYZ char mappings[] = "01230120022455012623010202"; s[0] = toupper(name[0]); for(int i = 1, l = strlen(name); i < l; i++) { c = toupper(name[i]) - 65; if(c >= 0 && c <= 25) { if(mappings[c] != '0') { if(mappings[c] != s[si-1]) { s[si] = mappings[c]; si++; } if(si > 3) { break; } } } } if(si <= 3) { while(si <= 3) { s[si] = '0'; si++; } } }+
Also:
See also:
file: /Techref/method/soundex.htm, 3KB, , updated: 2022/9/28 20:56, local time: 2024/11/8 22:34,
owner: JMN-EFP-786,
44.211.24.175:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.ecomorder.com/techref/method/soundex.htm?key=soundex"> Soundex and other phonetic matching algorithms</A> |
Did you find what you needed? "soundex" |
Welcome to ecomorder.com! |
Welcome to www.ecomorder.com! |
.