#include <evo/impl/sys.h>
Holds a Newline value that can be null, which implicitly converts to NL_SYS (system default newline).
- This is useful for storing and forwarding a newline choice to an object that may define it's own default newline (like Stream and StreamOut)
- See Newline and NewlineDefault
◆ NewlineValue() [1/4]
Constructor initializes as null.
◆ NewlineValue() [2/4]
Constructor initializes with a Newline value.
- Parameters
-
◆ NewlineValue() [3/4]
◆ NewlineValue() [4/4]
Copy constructor.
- Parameters
-
◆ getnewline() [1/2]
const char* getnewline |
( |
| ) |
const |
|
inline |
Get newline string pointer for current value.
- Returns
- Newline string pointer
◆ getnewline() [2/2]
const char* getnewline |
( |
uint & |
size, |
|
|
const char * |
default_newline, |
|
|
uint |
default_size |
|
) |
| const |
|
inline |
Get newline string pointer and size for current value, or use default string if null.
- Parameters
-
size | Set to newline string size [out] |
default_newline | Default newline string to use if null |
default_size | Default newline string size to use if null |
- Returns
- Newline string pointer
◆ getnewlinesize()
uint getnewlinesize |
( |
| ) |
const |
|
inline |
Get newline string size for current value.
- Returns
- Newline string size
◆ null()
Get whether null.
- Returns
- Whether null
◆ operator Newline()
Implicit conversion to a Newline value.
- Returns
- Newline value
◆ operator=() [1/3]
Assignment operator sets to Newline value.
- Parameters
-
- Returns
- This
◆ operator=() [2/3]
◆ operator=() [3/3]
Assignment operator to set as copy.
- Parameters
-
- Returns
- This
The documentation for this class was generated from the following file: