コード例 #1
0
        public static char FixCase(this ICharacterMatcher characterMatcher, char c)
        {
            if (characterMatcher.IgnoreCase)
            {
                return(char.ToLowerInvariant(c));
            }

            return(c);
        }
コード例 #2
0
ファイル: Character.cs プロジェクト: sbpnlp/kanjiteacher
 /// <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);
 }
コード例 #3
0
ファイル: Character.cs プロジェクト: sbpnlp/kanjiteacher
 /// <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));
 }