Dominion.ResultSetRanker.FormatName C# (CSharp) Method

FormatName() private static method

private static FormatName ( string name, int maxLength ) : string
name string
maxLength int
return string
        private static string FormatName(string name, int maxLength)
        {
            const int capLength = 25;
            var result = name.PadRight(maxLength);
            if (result.Length > capLength)
                result = result.Substring(0, capLength);
            return result;
        }