Aegis  4.25.D505
Functions
/home/archives/aegis/branch.4/branch.25/delta28933.505/common/boolean.h File Reference
#include <common/nstring.h>

Go to the source code of this file.

Functions

bool string_to_bool (const nstring &value, bool dflt=false)
bool string_to_bool (const char *value, bool dflt=false)
nstring bool_to_string (bool value)

Function Documentation

nstring bool_to_string ( bool  value)

The bool_to_string function is used to turn a boolean value into a string.

Parameters:
valueThe value to be converted.
Returns:
a string; either "true" or "false"
bool string_to_bool ( const nstring value,
bool  dflt = false 
)

The string_to_bool function is used to translate strings into boolean values.

Parameters:
valueThe value of the string to be converted
dfltThe default value if the value is empty
Returns:
a boolean value
bool string_to_bool ( const char *  value,
bool  dflt = false 
)

The string_to_bool function is used to translate strings into boolean values.

Parameters:
valueThe value of the string to be converted
dfltThe default value if the value is empty
Returns:
a boolean value