/// <summary> /// Transform Method Latin Uppercase Alphabet /// </summary> /// <param name="charsetName"></param> /// <returns></returns> public static List <string> AlphabetUppercase(string charsetName) { if (charsetName == "ualpha") { //ualpha CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()); Validated = false; } else if (charsetName == "ualpha-space") { //ualpha-space CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()).Concat(Space).ToList(); Validated = false; } else if (charsetName == "ualpha-numeric") { //ualpha-numeric CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()).Concat(Digits).ToList(); Validated = false; } else if (charsetName == "ualpha-numeric-space") { //ualpha_numeric_space CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()).Concat(Digits).Concat(Space).ToList(); Validated = false; } else if (charsetName == "ualpha-numeric-symbol14") { // ualpha_numeric_symbol14 CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()).Concat(Digits).Concat(Symbols14).ToList(); Validated = false; } else if (charsetName == "ualpha-numeric-symbol14-space") { //ualpha_numeric-symbol14-space CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()).Concat(Digits).Concat(Symbols14).Concat(Space).ToList(); Validated = false; } else if (charsetName == "ualpha-numeric-all") { //ualpha-numeric-all CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()).Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).ToList(); Validated = false; } else if (charsetName == "ualpha-numeric-all-space") { //ualpha-numeric-all-space CharsetSelecting = AlphaBasicLatin.ConvertAll(item => item.ToUpper()).Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).Concat(Space).ToList(); Validated = false; } else { Validated = true; } return(CharsetSelecting); }
/// <summary> /// Transform Method SV Latin Lowercase and Uppercase Alphabet /// </summary> /// <param name="charsetName"></param> /// <returns></returns> public static List <string> AlphabetSvMixcase(string charsetName) { if (charsetName == "sv-mixalpha") { //mixalpha-sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).ToList(); Validated = false; } else if (charsetName == "sv-mixalpha-space") { //mixalpha-space-sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaBasicLatin.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(Space).ToList(); Validated = false; } else if (charsetName == "sv-mixalpha-numeric") { // mixalpha-numeric-sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaBasicLatin.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(Digits).ToList(); Validated = false; } else if (charsetName == "sv-mixalpha-numeric-space") { //mixalpha-numeric-space_sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaBasicLatin.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Space).ToList(); Validated = false; } else if (charsetName == "sv-mixalpha-numeric-symbol14") { //mixalpha-numeric-symbol14-sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaBasicLatin.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).ToList(); Validated = false; } else if (charsetName == "sv-mixalpha-numeric-symbol14-space") { //mixalpha-numeric-symbol14-space-sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaBasicLatin.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).Concat(Space).ToList(); Validated = false; } else if (charsetName == "sv-mixalpha-numeric-all") { //mixalpha-numeric-all-sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaBasicLatin.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).ToList(); Validated = false; } else if (charsetName == "sv-mixalpha-numeric-all-space") { //mixalpha-numeric-all-space-sv CharsetSelecting = AlphaBasicLatin.Concat(AlphaSv).Concat(AlphaBasicLatin.ConvertAll(item => item.ToUpper())).Concat(AlphaSv.ConvertAll(item => item.ToUpper())).Concat(Digits).Concat(Symbols14).Concat(SymbolsAll).Concat(Space).ToList(); Validated = false; } else { Validated = true; } return(CharsetSelecting); }