util.h File Reference

Go to the source code of this file.


namespace  libthrowable
namespace  libthrowable::util


template<class OStreamableT>
std::string libthrowable::util::stringify (const OStreamableT &arg) throw ()
 Use this one to convert various objects to std::string.
int libthrowable::util::getTerminalWidth () throw ()
 Returns the width of the current terminal or 80.
std::string libthrowable::util::addIndent (const std::string &str, unsigned indent) throw ()
 Helper function to add indent to strings.
std::string libthrowable::util::optimizeForLineWidth (const std::string &str, int width) throw ()
 This function returns str optimized for a given linewidth.
std::string libthrowable::util::optimizeForTerminalWidth (const std::string &str) throw ()
 This function returns str optimized for the current terminal width.
std::string libthrowable::util::stringify (bool arg) throw ()

Generated on Wed Jan 9 18:07:17 2008 for libthrowable by  doxygen 1.5.4  Hosted on  SourceForge.net Logo