Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public static string MatchCharacters(this string candidate, MatchType matchType)
 {
     return MatchCharacters(candidate, matchType, false);
 }