public static char FixCase(this ICharacterMatcher characterMatcher, char c) { if (characterMatcher.IgnoreCase) { return(char.ToLowerInvariant(c)); } return(c); }
/// <summary> /// Calculates the matching score between two a sequence of IStrokes /// and a Radical /// </summary> /// <param name="radicalSequence"></param> /// <param name="charactermatcher"></param> /// <returns>double: matching value</returns> public double MatchingScore(List<IRadical> radicalSequence, ICharacterMatcher charactermatcher) { return charactermatcher.Match(this, radicalSequence); }
/// <summary> /// Calculates the matching score between two a sequence of IStrokes /// and a Radical /// </summary> /// <param name="radicalSequence"></param> /// <param name="charactermatcher"></param> /// <returns>double: matching value</returns> public double MatchingScore(List <IRadical> radicalSequence, ICharacterMatcher charactermatcher) { return(charactermatcher.Match(this, radicalSequence)); }