public string PrintFixedWidth(string source, int[] widths) { using var res = new StringWriter(); FixedWidthFormat.Print( res, FixedWidthFormat.CreateParser(widths).Parse(source).Select(dl => dl.Values), widths); return(res.ToString()); }
public string ParseFixedWidth([NotNull] string source, [NotNull] int[] widths) => FixedWidthFormat .CreateParser(widths) .Parse(source) .Select(l => l.ToString()) .Join("; ");