示例#1
0
        public static SqlBoolean approximatelySame(SqlString string1, SqlString string2,
                                                   SqlString comparisonOptions, SqlString toleranceOptions)
        {
            var compString = new CompStrings(string1, string2,
                                             toleranceOptions, comparisonOptions);
            var sdist = new StringDist(compString.from, compString.to);

            return(new SqlBoolean(sdist.approxSame(compString.comp, compString.tolerance)));
        }
 public static SqlBoolean approximatelySame(SqlString string1, SqlString string2,
                         SqlString comparisonOptions, SqlString toleranceOptions)
 {
     var compString = new CompStrings(string1, string2,
                                   toleranceOptions, comparisonOptions);
     var sdist = new StringDist(compString.from, compString.to);
     return new SqlBoolean(sdist.approxSame(compString.comp, compString.tolerance));
 }