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 left-, right- or center-aligning. the contents of the field.
const String&
.Definition at line 162 of file format.inl.
Public Field Index: | |
lang::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 Method Index: | |
Field (Box content, integer pWidth, lang::Alignment pAlignment=lang::Alignment::Right, TChar fillChar=' ') | |
lang::Alignment alignment |
The alignment of the contents within the field.
Definition at line 173 of file format.inl.
integer fieldWidth |
The width of the field.
Definition at line 172 of file format.inl.
TChar padChar |
The characters used for padding the contents within the field.
Definition at line 174 of file format.inl.
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 166 of file format.inl.
|
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 190 of file format.inl.