Пример #1
0
        /// <summary>
        /// Transform Method Latin Lowercase and Uppercase Alphabet
        /// </summary>
        /// <param name="charsetName"></param>
        /// <returns></returns>
        public static List <string> AlphabettMix(string charsetName)
        {
            if (charsetName == "mixcyrillic")
            {
                //mixcyrillic
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).ToList();
                Validated        = false;
            }
            else if (charsetName == "mixcyrillic-space")
            {
                //mixcyrillic-space
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).Concat(Space).ToList();
                Validated        = false;
            }
            else if (charsetName == "mixcyrillic-numeric")
            {
                //mixcyrillic-numeric
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).Concat(Digits).ToList();
                Validated        = false;
            }
            else if (charsetName == "mixcyrillic-numeric-space")
            {
                //mixcyrillic-numeric-space
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Space).ToList();
                Validated        = false;
            }
            else if (charsetName == "mixcyrillic-numeric-symbol14")
            {
                //mixcyrillic-numeric-symbol14
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).ToList();
                Validated        = false;
            }
            else if (charsetName == "mixcyrillic-numeric-symbol14-space")
            {
                //mixcyrillic-numeric-symbol14-space
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).Concat(Space).ToList();
                Validated        = false;
            }
            else if (charsetName == "mixcyrillic-numeric-all")
            {
                //mixcyrillic-numeric-all
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).ToList();
                Validated        = false;
            }
            else if (charsetName == "mixcyrillic-numeric-all-space")
            {
                //mixcyrillic-numeric-all-space
                CharsetSelecting = Cyrillic.Concat(Cyrillic.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).Concat(Space).ToList();
                Validated        = false;
            }
            else
            {
                Validated = true;
            }

            return(CharsetSelecting);
        }
Пример #2
0
        /// <summary>
        /// Transform Method Cyrillic Lowercase Alphabet
        /// </summary>
        /// <param name="charsetName"></param>
        /// <returns></returns>
        public static List <string> AlphabetLowercase(string charsetName)
        {
            if (charsetName == "lcyrillic")
            {
                //lcyrillic
                CharsetSelecting = Cyrillic.ToList();
            }
            else if (charsetName == "lcyrillic-space")
            {
                // lcyrillic-space
                CharsetSelecting = Cyrillic.Concat(Space).ToList();
                Validated        = false;
            }
            else if (charsetName == "lcyrillic-numeric")
            {
                // lcyrillic-numeric
                CharsetSelecting = Cyrillic.Concat(Digits).ToList();
                Validated        = false;
            }
            else if (charsetName == "lcyrillic-numeric-space")
            {
                //lcyrillic - numeric - space
                CharsetSelecting = Cyrillic.Concat(Digits).Concat(Space).ToList();
                Validated        = false;
            }
            else if (charsetName == "lcyrillic-numeric-symbol14")
            {
                //lcyrillic-numeric-symbol14
                CharsetSelecting = Cyrillic.Concat(Digits).Concat(Symbols14).ToList();
                Validated        = false;
            }
            else if (charsetName == "lcyrillic-numeric-symbol14-space")
            {
                // lcyrillic-numeric-symbol14-space
                CharsetSelecting = Cyrillic.Concat(Digits).Concat(Symbols14).Concat(Space).ToList();
                Validated        = false;
            }
            else if (charsetName == "lcyrillic-numeric-all")
            {
                //lcyrillic-numeric-all
                CharsetSelecting = Cyrillic.Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).ToList();
                Validated        = false;
            }
            else if (charsetName == "lcyrillic-numeric-all-space")
            {
                //lcyrillic-numeric-all-space
                CharsetSelecting = Cyrillic.Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).Concat(Space).ToList();
                Validated        = false;
            }
            else
            {
                Validated = true;
            }

            return(CharsetSelecting);
        }