#include <evo/impl/str.h>
Explicitly format a string.
|
| FmtString (const char *str, FmtAlign align=fLEFT) |
| Constructor. More...
|
|
| FmtString (const char *str, StrSizeT size, int width=-1, char ch=0) |
| Constructor. More...
|
|
| FmtString (const char *str, StrSizeT size, FmtAlign align, int width=-1, char ch=0) |
| Constructor. More...
|
|
| FmtString (const StringBase &str, int width=-1, char ch=0) |
| Constructor. More...
|
|
| FmtString (const StringBase &str, FmtAlign align, int width=-1, char ch=0) |
| Constructor. More...
|
|
| FmtString (const FmtString &str, FmtAlign align, int width, char ch=0) |
| Constructor with override fields for compatibility with FmtFieldType. More...
|
|
This & | width (int width, char ch=0) |
| Helper for setting padding attributes. More...
|
|
◆ FmtFieldType
This type paired with field info.
◆ StringBase
◆ This
◆ FmtString() [1/6]
Constructor.
- Parameters
-
str | String pointer to format, must be terminated |
align | Alignment type for string – see FmtAlign |
◆ FmtString() [2/6]
Constructor.
- Parameters
-
str | String pointer to format |
size | String size to format |
width | Width to format within, -1 for default |
ch | Padding character to fill in width around string, 0 for default |
◆ FmtString() [3/6]
Constructor.
- Parameters
-
str | String pointer to format |
size | String size to format |
align | Alignment type for string – see FmtAlign |
width | Width to format within, -1 for default |
ch | Padding character to fill in width around string, 0 for default |
◆ FmtString() [4/6]
Constructor.
- Parameters
-
str | String to format |
width | Width to format within, -1 for default |
ch | Padding character to fill in width around string, 0 for default |
◆ FmtString() [5/6]
Constructor.
- Parameters
-
str | String to format |
align | Alignment type for string – see FmtAlign |
width | Width to format within, -1 for default |
ch | Padding character to fill in width around string, 0 for default |
◆ FmtString() [6/6]
Constructor with override fields for compatibility with FmtFieldType.
- Parameters
-
str | String to format |
align | Alignment type for string – see FmtAlign |
width | Width to format within, -1 for default |
ch | Padding character to fill in width around string, 0 for default |
◆ width()
This& width |
( |
int |
width, |
|
|
char |
ch = 0 |
|
) |
| |
|
inline |
Helper for setting padding attributes.
- Parameters
-
width | Width to format within, -1 for default |
ch | Padding character to fill in width around string, 0 for default |
- Returns
- This
◆ fmt
◆ str
The documentation for this struct was generated from the following file: