示例#1
0
        public static bool op_SoundsLike(string left, string right)
        {
            if (left == null || right == null)
            {
                return(false);
            }

            return(Soundex.GetCode(left) == Soundex.GetCode(right));
        }
示例#2
0
        public static string GetSoundexCode(string text)
        {
            if (text == null)
            {
                return(null);
            }

            try
            {
                return(Soundex.GetCode(text));
            }
            catch (Exception ex)
            {
                throw ExceptionBuilder.RuntimeError(ex);
            }
        }