public static List <string> Split(this string textToBeSplitted, FixedWidthStringList seperators) { var indices = textToBeSplitted.AllIndicesOfAny(seperators); if (indices.Count == 0) { return new[] { textToBeSplitted } }
public static FixedWidthStringList ToFixedWidthStringList <T>(this T enumerable) where T : IEnumerable <string> { FixedWidthStringList list = new FixedWidthStringList(); foreach (var s in enumerable) { list.Add(s); } return(list); }
public static List <string> Split(this List <string> textsToSplit, FixedWidthStringList seperators) { List <string> results = new List <string>(); foreach (string textToBeSplitted in textsToSplit) { results.AddRange(textToBeSplitted.Split(seperators)); } return(results); }