Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

irc::irc_char_traits Struct Reference

The irc_char_traits class is used for RFC-style comparison of strings. More...

#include <hashcomp.h>

Inheritance diagram for irc::irc_char_traits:

Inheritance graph
[legend]
Collaboration diagram for irc::irc_char_traits:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static bool eq (char c1st, char c2nd)
 Check if two chars match.
static bool ne (char c1st, char c2nd)
 Check if two chars do NOT match.
static bool lt (char c1st, char c2nd)
 Check if one char is less than another.
static int compare (const char *str1, const char *str2, size_t n)
 Compare two strings of size n.
static const char * find (const char *s1, int n, char c)
 Find a char within a string up to position n.

Detailed Description

The irc_char_traits class is used for RFC-style comparison of strings.

This class is used to implement irc::string, a case-insensitive, RFC- comparing string class.

Definition at line 104 of file hashcomp.h.


Member Function Documentation

static int irc::irc_char_traits::compare const char *  str1,
const char *  str2,
size_t  n
[static]
 

Compare two strings of size n.

static bool irc::irc_char_traits::eq char  c1st,
char  c2nd
[static]
 

Check if two chars match.

static const char* irc::irc_char_traits::find const char *  s1,
int  n,
char  c
[static]
 

Find a char within a string up to position n.

static bool irc::irc_char_traits::lt char  c1st,
char  c2nd
[static]
 

Check if one char is less than another.

static bool irc::irc_char_traits::ne char  c1st,
char  c2nd
[static]
 

Check if two chars do NOT match.


The documentation for this struct was generated from the following file:
Generated on Sun Nov 27 01:43:27 2005 for InspIRCd by  doxygen 1.4.4-20050815