1 .TH "irc::irc_char_traits" 3 "15 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*-
5 irc::irc_char_traits \- The \fBirc_char_traits\fP class is used for RFC-style comparison of strings.
11 \fC#include <hashcomp.h>\fP
13 Inherits \fBchar_traits< char >\fP.
15 .SS "Static Public Member Functions"
19 .RI "static bool \fBeq\fP (char c1st, char c2nd)"
21 .RI "\fICheck if two chars match. \fP"
23 .RI "static bool \fBne\fP (char c1st, char c2nd)"
25 .RI "\fICheck if two chars do NOT match. \fP"
27 .RI "static bool \fBlt\fP (char c1st, char c2nd)"
29 .RI "\fICheck if one char is less than another. \fP"
31 .RI "static int \fBcompare\fP (const char *str1, const char *str2, size_t n)"
33 .RI "\fICompare two strings of size n. \fP"
35 .RI "static const char * \fBfind\fP (const char *s1, int n, char c)"
37 .RI "\fIFind a char within a string up to position n. \fP"
39 .SH "Detailed Description"
41 The \fBirc_char_traits\fP class is used for RFC-style comparison of strings.
43 This class is used to implement \fBirc::string\fP, a case-insensitive, RFC- comparing string class.
45 Definition at line 104 of file hashcomp.h.
46 .SH "Member Function Documentation"
48 .SS "static int irc::irc_char_traits::compare (const char * str1, const char * str2, size_t n)\fC [static]\fP"
50 Compare two strings of size n.
52 .SS "static bool irc::irc_char_traits::eq (char c1st, char c2nd)\fC [static]\fP"
54 Check if two chars match.
56 .SS "static const char* irc::irc_char_traits::find (const char * s1, int n, char c)\fC [static]\fP"
58 Find a char within a string up to position n.
60 .SS "static bool irc::irc_char_traits::lt (char c1st, char c2nd)\fC [static]\fP"
62 Check if one char is less than another.
64 .SS "static bool irc::irc_char_traits::ne (char c1st, char c2nd)\fC [static]\fP"
66 Check if two chars do NOT match.
72 Generated automatically by Doxygen for InspIRCd from the source code.