Left padding
Pads a string by inserting characters on the left side.
Endpoint:
GET parameters:
- str: string – string to pad
- len: integer – requested padded minimum string length, maximum value 16384
- ch: character – a single character to be used for padding; optional, default is space
Response:
The padded string
Examples:
Right padding
Pads a string by inserting characters on the right side.
Endpoint:
GET parameters:
- str: string – string to pad
- len: integer – requested padded minimum string length, maximum value 16384
- ch: character – a single character to be used for padding; optional, default is space
Response:
The padded string