private bool MatchProgram(Program program, FuzzyMatcher matcher) { program.Score = matcher.Score(program.Title); if (program.Score > 0) return true; program.Score = matcher.Score(ChineseToPinYin.ToPinYin(program.Title).Replace(" ", "")); if (program.Score > 0) return true; return false; }
private bool MatchProgram(Program program, FuzzyMatcher matcher) { if (program.AbbrTitle != null && (program.Score = matcher.Score(program.AbbrTitle)) > 0) return true; if ((program.Score = matcher.Score(program.Title)) > 0) return true; if ((program.Score = matcher.Score(program.PinyinTitle)) > 0) return true; return false; }