Exemple #1
0
        public static List <string> Split(this string textToBeSplitted, FixedWidthStringList seperators)
        {
            var indices = textToBeSplitted.AllIndicesOfAny(seperators);

            if (indices.Count == 0)
            {
                return new[] { textToBeSplitted }
            }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }