1fstrcolli(3) Library Functions Manual fstrcolli(3)
2
3
4
6 fstrcolli - fuzzy comparison of two strings using the current locale
7
9 #include <fstrcmp.h>
10 #define FSTRCMP_IDENTICAL
11 #define FSTRCMP_THRESHOLD
12 #define FSTRCMP_ERROR
13 int fstrcolli(const char *string1, const char *string2);
14
16 The strcolli() function compares the two strings sting1 and string2.
17 The comparison is based on strings interpreted as appropriate for the
18 program's current locale for category LC_CTYPE.
19
21 The fstrcolli function returns an int value between 0 and FSTR‐
22 CMPI_IDENTICAL. A value of 0 means the strings are utterly un-alike.
23 A value of FSTRCMPI_IDENTICAL means the strings are identical. A value
24 of more than FSTRCMPI_THRESHOLD (it lies between 0 and FSTRCMPI_IDENTI‐
25 CAL) would be considered "similar" by most people.
26
27 A value of FSTRCMPI_ERROR (always negative) indicates a malloc(3) or
28 mbstowcs(3) failure.
29
31 fstrcmpi(3)
32 fuzzy comparison of two strings
33
34 fstrcoll(3)
35 fuzzy comparison of two strings using the current locale
36
37 strcoll(3)
38 compare two strings using the current locale
39
40 mbstowcs(3)
41 convert a multibyte string to a wide-character string
42
44 fstrcmp version 0.7
45 Copyright (C) 2009 Peter Miller
46 Peter Miller <pmiller@opensource.org.au>
47
48 The comparison code is derived from the fuzzy comparison functions in
49 GNU Gettext 0.17. The GNU Gettext comparison functions were, in turn,
50 derived from GNU Diff 2.7.
51
52 Copyright (C) 1988-2009 Free Software Foundation
53
54
55
56 fstrcolli(3)