public List <string> ListMixCyrillic(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); }
public List <string> ListcyrillicLowerCase(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); }