Aqueduct.Extensions.Dates.FormatString C# (CSharp) Method

FormatString() private static method

Remove leading strings with zeros and adjust for singular/plural
private static FormatString ( this str, string previousStr, int t ) : string
str this The STR.
previousStr string The previous STR.
t int The t.
return string
        private static string FormatString(this string str, string previousStr, int t)
        {
            if ((t == 0) && (previousStr.Length == 0))
                return String.Empty;

            string suffix = (t == 1) ? String.Empty : "s";
            return String.Concat(t, SPACE, str, suffix, SPACE);
        }
    }