AddChar function
Add characters to the left of a string till a certain length.
Declaration
function AddChar(C: AnsiChar; const S: string; N: Integer): stringArguments
C | Char to be added. |
S | The string to be treated. |
N | The minimal length the string should have. |
Function result
The resulting string with length
N.
Description
AddChar adds characters (
C) to the left of S
till the length
N is reached, and returns the resulting string.
If the length of
S is already equal to or larger than
N,
then no characters are added. The resulting string can be thought of as a
right-aligned version of
S, with length
N.Errors
None
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
