コード例 #1
0
ファイル: Form1.cs プロジェクト: paulusyeung/VWG.Community
        private void cmdSoundex2_Click(object sender, EventArgs e)
        {
            var msg = Soundex.Encode(txtSecondText.Text.Trim());

            MessageBox.Show(msg);
            var phonetic = new PhoneticMatch();
            var pMsg     = phonetic.CreateToken(txtSecondText.Text.Trim());

            MessageBox.Show(pMsg);
        }
        //https://ru.wikipedia.org/wiki/Soundex
        public string TestKnownValues(string value)
        {
            string actual = Soundex.Encode(value);

            return(actual);
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: paulusyeung/VWG.Community
        private void cmdSoundex1_Click(object sender, EventArgs e)
        {
            var msg = Soundex.Encode(txtFirstText.Text.Trim());

            MessageBox.Show(msg);
        }
コード例 #4
0
 public void RetainsSoleLetterOfOneLetterWord()
 {
     Assert.Equal("A000", soundex.Encode("A"));
 }