#include <format.hpp>
Used to create temporary objects which are appended to AString instances.
Appends the given object to the AString using a defined 'field'-width. If the contents of the field is shorter than parameter width specifies, the field is filled with a corresponding amount of padChar characters.
Parameter alignment of type Alignment allows to left-, right- or center-align the contents of the field.
const String&.Definition at line 166 of file format.hpp.
Public Fields | |
| Alignment | alignment |
| The alignment of the contents within the field. | |
| integer | fieldWidth |
| The width of the field. | |
| TChar | padChar |
| The characters used for padding the contents within the field. | |
| Box | theContent |
Public Methods | |
| Field (Box content, integer pWidth, Alignment pAlignment=Alignment::Right, TChar fillChar=' ') | |
|
inline |
Constructor. Copies the parameters.
| content | The contents of the field. If module ALib Boxing is not available, this field is of type const TString<TChar>&, otherwise of type Box. |
| pWidth | The width of the field |
| pAlignment | The alignment of the contents within the field. Defaults to Alignment::Right Other options are Alignment::Left and Alignment::Center. |
| fillChar | The character used to fill the field up to its size. Defaults to ' ' (space). |
Definition at line 196 of file format.hpp.
| Box theContent |
The content of the field. If module ALib Boxing is not available, this field is of type const TString<TChar>&
Definition at line 170 of file format.hpp.