View Single Post
  #7 (permalink)  
Old 09-16-2008, 02:10 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,067
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Here is the C# source with the improved Soundex and DoubleMetaphone algorithms. There are two versions of DM, the original returning a string and a numeric version that returns an integer calculated from the string. The idea of this was to make long series of comparisons faster as numeric comparisons are faster than string comparisons. However this is not necessarily true for B4ppc as it holds integers as strings anyway and converts them for comparisons so there will be little, if any, speed benefit.

EDIT:- Obsolete source code removed from this post. The latest version is with the library in the first post of this thread.

Last edited by agraham : 09-18-2008 at 08:41 AM.
Reply With Quote