예제 #1
0
 private static bool IsInvalidMatcher(string input, params char[] matchKanji) =>
 (matchKanji.Length > 0 && !matchKanji.Any(KanjiChecker.IsKanji)) ||
 (matchKanji.Length == 0 && KanaChecker.IsKana(input));
예제 #2
0
 private static bool IsTrailingWithoutFinalKana(string input, bool isLeading) =>
 !isLeading && !KanaChecker.IsKana(input[input.Length - 1]);
예제 #3
0
 /// <summary>
 /// Test if input is kana.
 /// </summary>
 /// <param name="input">Input.</param>
 /// <returns>A value indicating whether input is kana.</returns>
 public static bool IsKana(string input) => KanaChecker.IsKana(input);
예제 #4
0
 private static bool IsLeadingWithoutInitialKana(string input, bool isLeading) =>
 isLeading && !KanaChecker.IsKana(input[0]);
예제 #5
0
 /// <summary>
 /// Test if input is kana.
 /// </summary>
 /// <param name="input">Input.</param>
 /// <returns>A value indicating whether input is kana.</returns>
 public static bool IsKana(char input) => KanaChecker.IsKana(input);