util.hh File Reference

Provides various utilities. More...

#include <string>
#include <sys/time.h>


namespace  nnl


AbsMsecTime nnl::get_msec_time ()
 Get current time in ms.
std::string nnl::bin2txt (const char *ptr, size_t len)
 Convert text to printable characters.
std::string nnl::bin2txt (const std::string &s)
 Convert text to printable characters.
int nnl::strncasecmp (std::string::size_type start, std::string::size_type len, const std::string &s1, const std::string &s2)
 Case insensitive comparison.
int nnl::strncasecmp (const std::string &s1, std::string::size_type p1, const std::string &s2, std::string::size_type p2, std::string::size_type n)
 Case insensitive comparison.
std::string nnl::EventsToString (short events)
 Convert poll() events / revents to string.

Detailed Description

Provides various utilities.

Generated on Tue Jun 19 10:31:47 2012 for nnl by  doxygen 1.4.7