libaegis/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)
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:
value The 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:
value The value of the string to be converted
dflt The default value if the value is empty
Returns:
a boolean value


Generated on Wed Mar 12 23:37:36 2008 for Aegis by  doxygen 1.5.5