diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libc/string/strcoll.3 | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/src/lib/libc/string/strcoll.3 b/src/lib/libc/string/strcoll.3 deleted file mode 100644 index 9daa6cd93f..0000000000 --- a/src/lib/libc/string/strcoll.3 +++ /dev/null | |||
@@ -1,103 +0,0 @@ | |||
1 | .\" $OpenBSD: strcoll.3,v 1.11 2019/01/18 07:43:36 schwarze Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | ||
4 | .\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> | ||
5 | .\" All rights reserved. | ||
6 | .\" | ||
7 | .\" This code is derived from software contributed to Berkeley by | ||
8 | .\" Chris Torek and the American National Standards Committee X3, | ||
9 | .\" on Information Processing Systems. | ||
10 | .\" | ||
11 | .\" Redistribution and use in source and binary forms, with or without | ||
12 | .\" modification, are permitted provided that the following conditions | ||
13 | .\" are met: | ||
14 | .\" 1. Redistributions of source code must retain the above copyright | ||
15 | .\" notice, this list of conditions and the following disclaimer. | ||
16 | .\" 2. Redistributions in binary form must reproduce the above copyright | ||
17 | .\" notice, this list of conditions and the following disclaimer in the | ||
18 | .\" documentation and/or other materials provided with the distribution. | ||
19 | .\" 3. Neither the name of the University nor the names of its contributors | ||
20 | .\" may be used to endorse or promote products derived from this software | ||
21 | .\" without specific prior written permission. | ||
22 | .\" | ||
23 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
24 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
25 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
26 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
27 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
28 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
29 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
30 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
31 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
32 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
33 | .\" SUCH DAMAGE. | ||
34 | .\" | ||
35 | .Dd $Mdocdate: January 18 2019 $ | ||
36 | .Dt STRCOLL 3 | ||
37 | .Os | ||
38 | .Sh NAME | ||
39 | .Nm strcoll , | ||
40 | .Nm strcoll_l | ||
41 | .Nd compare strings according to current collation | ||
42 | .Sh SYNOPSIS | ||
43 | .In string.h | ||
44 | .Ft int | ||
45 | .Fn strcoll "const char *s1" "const char *s2" | ||
46 | .Ft int | ||
47 | .Fn strcoll_l "const char *s1" "const char *s2" "locale_t locale" | ||
48 | .Sh DESCRIPTION | ||
49 | The | ||
50 | .Fn strcoll | ||
51 | and | ||
52 | .Fn strcoll_l | ||
53 | functions lexicographically compare the NUL-terminated strings | ||
54 | .Fa s1 | ||
55 | and | ||
56 | .Fa s2 | ||
57 | according to the current locale collation | ||
58 | and return an integer greater than, equal to, or less than 0, | ||
59 | according to whether | ||
60 | .Fa s1 | ||
61 | is greater than, equal to, or less than | ||
62 | .Fa s2 . | ||
63 | .Pp | ||
64 | On | ||
65 | .Ox , | ||
66 | they have the same effect as | ||
67 | .Xr strcmp 3 , | ||
68 | and the global locale, the thread-specific locale, and the | ||
69 | .Fa locale | ||
70 | argument are ignored. | ||
71 | On other operating systems, results may depend on the | ||
72 | .Dv LC_CTYPE | ||
73 | and | ||
74 | .Dv LC_COLLATE | ||
75 | locale categories set with | ||
76 | .Xr setlocale 3 , | ||
77 | .Xr uselocale 3 , | ||
78 | or | ||
79 | .Xr newlocale 3 . | ||
80 | .Sh SEE ALSO | ||
81 | .Xr newlocale 3 , | ||
82 | .Xr setlocale 3 , | ||
83 | .Xr strcmp 3 , | ||
84 | .Xr strxfrm 3 , | ||
85 | .Xr wcscoll 3 | ||
86 | .Sh STANDARDS | ||
87 | The | ||
88 | .Fn strcoll | ||
89 | function conforms to | ||
90 | .St -ansiC , | ||
91 | and | ||
92 | .Fn strcoll_l | ||
93 | to | ||
94 | .St -p1003.1-2008 . | ||
95 | .Sh HISTORY | ||
96 | The | ||
97 | .Fn strcoll | ||
98 | function has been available since | ||
99 | .Bx 4.3 Reno , | ||
100 | and | ||
101 | .Fn strcoll_l | ||
102 | since | ||
103 | .Ox 6.2 . | ||