summaryrefslogtreecommitdiff
path: root/docs/man/man3/irc_irc_char_traits.3
blob: 4b94560db3dc64b27561b69c7b6d13cf958d0d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.TH "irc::irc_char_traits" 3 "15 Dec 2005" "Version 1.0Betareleases" "InspIRCd" \" -*- nroff -*-
.ad l
.nh
.SH NAME
irc::irc_char_traits \- The \fBirc_char_traits\fP class is used for RFC-style comparison of strings.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <hashcomp.h>\fP
.PP
Inherits \fBchar_traits< char >\fP.
.PP
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static bool \fBeq\fP (char c1st, char c2nd)"
.br
.RI "\fICheck if two chars match. \fP"
.ti -1c
.RI "static bool \fBne\fP (char c1st, char c2nd)"
.br
.RI "\fICheck if two chars do NOT match. \fP"
.ti -1c
.RI "static bool \fBlt\fP (char c1st, char c2nd)"
.br
.RI "\fICheck if one char is less than another. \fP"
.ti -1c
.RI "static int \fBcompare\fP (const char *str1, const char *str2, size_t n)"
.br
.RI "\fICompare two strings of size n. \fP"
.ti -1c
.RI "static const char * \fBfind\fP (const char *s1, int n, char c)"
.br
.RI "\fIFind a char within a string up to position n. \fP"
.in -1c
.SH "Detailed Description"
.PP 
The \fBirc_char_traits\fP class is used for RFC-style comparison of strings. 

This class is used to implement \fBirc::string\fP, a case-insensitive, RFC- comparing string class.
.PP
Definition at line 104 of file hashcomp.h.
.SH "Member Function Documentation"
.PP 
.SS "static int irc::irc_char_traits::compare (const char * str1, const char * str2, size_t n)\fC [static]\fP"
.PP
Compare two strings of size n. 
.PP
.SS "static bool irc::irc_char_traits::eq (char c1st, char c2nd)\fC [static]\fP"
.PP
Check if two chars match. 
.PP
.SS "static const char* irc::irc_char_traits::find (const char * s1, int n, char c)\fC [static]\fP"
.PP
Find a char within a string up to position n. 
.PP
.SS "static bool irc::irc_char_traits::lt (char c1st, char c2nd)\fC [static]\fP"
.PP
Check if one char is less than another. 
.PP
.SS "static bool irc::irc_char_traits::ne (char c1st, char c2nd)\fC [static]\fP"
.PP
Check if two chars do NOT match. 
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for InspIRCd from the source code.