Exemplo n.º 1
0
        public List <string> MixAlphaList(string charsetName)
        {
            if (charsetName == "mixalpha")
            {
                //mixalpha
                charsetSelecting = Lalpha.Concat(Ualpha).ToList();
                BooleanType      = false;
            }
            else if (charsetName == "mixalpha-space")
            {
                //mixalpha-space
                charsetSelecting = Lalpha.Concat(Ualpha).Concat(Space).ToList();
                BooleanType      = false;
            }
            else if (charsetName == "mixalpha-numeric")
            {
                //mixalpha-numeric
                charsetSelecting = Lalpha.Concat(Ualpha).Concat(Numeric).ToList();
                BooleanType      = false;
            }
            else if (charsetName == "mixalpha-numeric-space")
            {
                //mixalpha-numeric-space
                charsetSelecting = Lalpha.Concat(Ualpha).Concat(Numeric).Concat(Space).ToList();
                BooleanType      = false;
            }
            else if (charsetName == "mixalpha-numeric-symbol14")
            {
                //mixalpha-numeric-symbol14
                charsetSelecting = Lalpha.Concat(Ualpha).Concat(Numeric).Concat(Symbols14).ToList();
                BooleanType      = false;
            }
            else if (charsetName == "mixalpha-numeric-symbol14-space")
            {
                //mixalpha-numeric-symbol14-space
                charsetSelecting = Lalpha.Concat(Ualpha).Concat(Numeric).Concat(Symbols14).Concat(Space).ToList();
                BooleanType      = false;
            }
            else if (charsetName == "mixalpha-numeric-all")
            {
                // mixalpha-numeric-all
                charsetSelecting = Lalpha.Concat(Ualpha).Concat(Numeric).Concat(Symbols14).Concat(Symbols_all).ToList();
                BooleanType      = false;
            }
            else if (charsetName == "mixalpha-numeric-all-space")
            {
                // mixalpha-numeric-all-space
                charsetSelecting = Lalpha.Concat(Ualpha).Concat(Numeric).Concat(Symbols14).Concat(Symbols_all).Concat(Space).ToList();
                BooleanType      = false;
            }
            else
            {
                BooleanType = true;
            }


            return(charsetSelecting);
        }
Exemplo n.º 2
0
        public List <string> MixAlpha_svList(string charsetName)
        {
            if (charsetName == "sv-mixalpha")
            {
                //mixalpha-sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).ToList();
            }
            else if (charsetName == "sv-mixalpha-space")
            {
                //mixalpha-space-sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).Concat(Space).ToList();
            }
            else if (charsetName == "sv-mixalpha-numeric")
            {
                // mixalpha-numeric-sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).Concat(Numeric).ToList();
            }
            else if (charsetName == "sv-mixalpha-numeric-space")
            {
                //mixalpha-numeric-space_sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).Concat(Numeric).Concat(Space).ToList();
            }
            else if (charsetName == "sv-mixalpha-numeric-symbol14")
            {
                //mixalpha-numeric-symbol14-sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).Concat(Numeric).Concat(Symbols14).ToList();
            }
            else if (charsetName == "sv-mixalpha-numeric-symbol14-space")
            {
                //mixalpha-numeric-symbol14-space-sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).Concat(Numeric).Concat(Symbols14).Concat(Space).ToList();
            }
            else if (charsetName == "sv-mixalpha-numeric-all")
            {
                //mixalpha-numeric-all-sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).Concat(Numeric).Concat(Symbols14).Concat(Symbols_all).ToList();
            }
            else if (charsetName == "sv-mixalpha-numeric-all-space")
            {
                //mixalpha-numeric-all-space-sv
                charsetSelecting = Lalpha.Concat(Lalpha_sv).Concat(Ualpha).Concat(Ualpha_sv).Concat(Numeric).Concat(Symbols14).Concat(Symbols_all).Concat(Space).ToList();
            }

            return(charsetSelecting);
        }