InspIRCd  2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations
Namespaces | Classes | Typedefs | Functions
irc Namespace Reference

Namespaces

 sockets
 

Classes

class  commasepstream
 
struct  hash
 
struct  irc_char_traits
 
class  modestacker
 
class  portparser
 
class  sepstream
 
class  spacesepstream
 
struct  StrHashComp
 
class  stringjoiner
 
class  tokenstream
 

Typedefs

typedef std::basic_string
< char, irc_char_traits,
std::allocator< char > > 
string
 

Functions

CoreExport std::string hex (const unsigned char *raw, size_t rawsz)
 
CoreExport const char * Spacify (const char *n)
 

Detailed Description

The irc namespace contains a number of helper classes.

Typedef Documentation

typedef std::basic_string<char, irc_char_traits, std::allocator<char> > irc::string

This typedef declares irc::string based upon irc_char_traits.

Function Documentation

std::string irc::hex ( const unsigned char *  raw,
size_t  rawsz 
)

Compose a hex string from raw data.

Parameters
rawThe raw data to compose hex from
rawszThe size of the raw data buffer
Returns
The hex string.
CoreExport const char * irc::Spacify ( const char *  n)

Turn _ characters in a string into spaces

Parameters
nString to translate
Returns
The new value with _ translated to space.