public static string MatchCharacters(this string candidate, MatchType matchType, bool caseSensitive) { string chars = string.Empty; for (int i = 1; i <= matchTypeCeiling; i *= 2) if ((matchType & i) == i) chars += MatchType.MatchCharacters[i]; if (!caseSensitive) chars += chars.ToUpper(); return MatchCharacters(candidate, chars); }
public static string MatchCharacters(this string candidate, MatchType matchType) { return MatchCharacters(candidate, matchType, false); }