DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Deveel.Data.Text.Soundex Class Referenceabstract
Inheritance diagram for Deveel.Data.Text.Soundex:
Deveel.Data.Text.Soundex.DefaultSoundex

Classes

class  DefaultSoundex
 

Public Member Functions

virtual int Difference (string s1, string s2)
 
abstract string Compute (string s)
 

Static Public Attributes

static Soundex Default = new DefaultSoundex()
 

Protected Member Functions

virtual string EncodeChar (char c)
 

Detailed Description

Definition at line 22 of file Soundex.cs.

Member Function Documentation

abstract string Deveel.Data.Text.Soundex.Compute ( string  s)
pure virtual
virtual int Deveel.Data.Text.Soundex.Difference ( string  s1,
string  s2 
)
inlinevirtual

Definition at line 25 of file Soundex.cs.

25  {
26  throw new NotSupportedException();
27  }
virtual string Deveel.Data.Text.Soundex.EncodeChar ( char  c)
inlineprotectedvirtual

Definition at line 31 of file Soundex.cs.

31  {
32  switch (Char.ToUpperInvariant(c)) {
33  case 'B':
34  case 'F':
35  case 'P':
36  case 'V':
37  return "1";
38  case 'C':
39  case 'G':
40  case 'J':
41  case 'K':
42  case 'Q':
43  case 'S':
44  case 'X':
45  case 'Z':
46  return "2";
47  case 'D':
48  case 'T':
49  return "3";
50  case 'L':
51  return "4";
52  case 'M':
53  case 'N':
54  return "5";
55  case 'R':
56  return "6";
57  default:
58  return string.Empty;
59  }
60  }

Member Data Documentation

Soundex Deveel.Data.Text.Soundex.Default = new DefaultSoundex()
static

Definition at line 23 of file Soundex.cs.


The documentation for this class was generated from the following file: