PadChRightStr Function |
Unit
QESBPCSConvert
Declaration
Function PadChRightStr(const S: string; const Ch: Char; const Len: LongWord): string;
Description
Also See: PadRightStr, PadChLeftStr
Parameters |
S | the String to pad. |
Ch | the character to use for padding |
Len | the length of the resultant substring. If Length (S) >= Len then NO padding occurs, and S is returned. |
Category
Extra String Handling RoutinesImplementation
function PadChRightStr (const S: string; const Ch: Char; const Len: LongWord): string; var N: LongWord; begin N := Length (S); if N < Len then Result := S + FillStr (Ch, Len - N) else Result := S; End; |
|