Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound 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

bool eq (char c1st, char c2nd)
 Check if two chars match.

bool ne (char c1st, char c2nd)
 Check if two chars do NOT match.

bool lt (char c1st, char c2nd)
 Check if one char is less than another.

int compare (const char *str1, const char *str2, size_t n)
 Compare two strings of size n.

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

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

Compare two strings of size n.

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

Check if two chars match.

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.

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

Check if one char is less than another.

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 Tue May 24 02:32:56 2005 for InspIRCd by doxygen 1.3.3