debian/rules: Use `git' potty wrapper.
[qmail] / case.3
CommitLineData
2117e02e
MW
1.TH case 3
2.SH NAME
3case \- convert ASCII uppercase bytes to lowercase
4.SH SYNTAX
5.B #include <case.h>
6
7void \fBcase_lowers\fP(\fIs\fR);
8.br
9void \fBcase_lowerb\fP(\fIs\fR,\fIlen\fR);
10
11int \fBcase_diffs\fP(\fIs\fR,\fIt\fR);
12.br
13int \fBcase_equals\fP(\fIs\fR,\fIt\fR);
14.br
15int \fBcase_starts\fP(\fIs\fR,\fIt\fR);
16
17int \fBcase_diffb\fP(\fIs\fR,\fIlen\fR,\fIt\fR);
18.br
19int \fBcase_startb\fP(\fIs\fR,\fIlen\fR,\fIt\fR);
20
21char *\fIs\fR;
22.br
23char *\fIt\fR;
24.br
25unsigned int \fIlen\fR;
26.SH DESCRIPTION
27.B case_lowers
28converts each uppercase byte in the string
29.I s
30to lowercase.
31.I s
32must be 0-terminated.
33
34.B case_lowerb
35converts each uppercase byte in the buffer
36.IR s ,
37of length
38.IR len ,
39to lowercase.
40
41.B case_diffs
42lexicographically compares lowercase versions of the strings
43.I s
44and
45.IR t .
46It returns something positive, negative, or zero
47when the first is larger than, smaller than, or equal to the second.
48.I s
49and
50.I t
51must be 0-terminated.
52
53.B case_equals
54means
55.BR !case_diffs .
56
57.B case_starts
58returns 1 if a lowercase version of
59.I s
60starts with a lowercase version of
61.IR t .
62.I s
63and
64.I t
65must be 0-terminated.
66
67.B case_diffb
68lexicographically compares lowercase versions of the buffers
69.I s
70and
71.IR t ,
72each of length
73.IR len .
74It returns something positive, negative, or zero
75when the first is larger than, smaller than, or equal to the second.
76
77.B case_startb
78returns 1 if a lowercase version of the buffer
79.IR s ,
80of length
81.IR len ,
82starts with a lowercase version of the string
83.IR t .
84.I t
85must be 0-terminated.
86
87The
88.B case
89routines
90are ASCII-specific.
91They are suitable for programs that handle
92case-independent networking protocols.
93
94All comparisons are performed on unsigned bytes.
95.SH "SEE ALSO"
96byte_diff(3),
97byte_equal(3),
98str_diff(3),
99str_equal(3),
100str_start(3)