Debian Codegraph @

man/man3/fwcscmpi.3

raw
1 .\"
2 .\" fstrcmp - fuzzy string compare library
3 .\" Copyright (C) 2009, 2011 Peter Miller
4 .\" Written by Peter Miller <[email protected]>
5 .\"
6 .\" This program is free software; you can redistribute it and/or modify
7 .\" it under the terms of the GNU General Public License as published by
8 .\" the Free Software Foundation; either version 3 of the License, or
9 .\" (at your option) any later version.
10 .\"
11 .\" This program is distributed in the hope that it will be useful,
12 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
13 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 .\" General Public License for more details.
15 .\"
16 .\" You should have received a copy of the GNU General Public License
17 .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
18 .\"
19 .ds n) fwcscmpi
20 .TH fwcscmpi 3
21 .SH NAME
22 fwcscmpi \- fuzzy comparison of two wide-character strings
23 .if require_index \{
24 .XX "fwcscmpi(3)" "fuzzy comparison of two wide-character strings"
25 .\}
26 .SH SYNOPSIS
27 #include <fstrcmp.h>
28 .sp 0.3
29 #define FSTRCMPI_IDENTICAL
30 .br
31 #define FSTRCMPI_THRESHOLD
32 .br
33 #define FSTRCMPI_ERROR
34 .sp 0.3
35 int fwcscmpi(const wchar_t *string1, const wchar_t *string2);
36 .SH DESCRIPTION
37 The \f[B]fwcscmpi\fP() function compares the two wide-character strings,
38 \f[I]string1\fP and \f[I]string2\fP.
39 .SH RETURN VALUE
40 The \f[B]fwcscmpi\fP function returns an \f[B]int\fP value between 0
41 and FSTRCMPI_IDENTICAL. A value of 0 means the two wide-character
42 strings are utterly un-alike. A value of FSTRCMPI_IDENTICAL means
43 the two wide-character strings are identical. A value of more than
44 FSTRCMPI_THRESHOLD (it lies between 0 and FSTRCMPI_IDENTICAL) would be
45 considered "similar" by most people.
46 .PP
47 A value of FSTRCMPI_ERROR (always negative) indicates a \f[I]malloc\fP(3)
48 failure.
49 .SH SEE ALSO
50 .TP 8n
51 \f[I]fstrcmp\fP(3)
52 fuzzy comparison of two strings
53 .TP 8n
54 \f[I]fwcscmp\fP(3)
55 fuzzy comparison of two wide-character strings
56 .TP 8n
57 \f[I]wcscmp\fP(3)
58 compare two wide-character strings
59 .so man/man1/z_copyright.so