OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / strcoll.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sun Jul 25 10:40:44 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
30 .\"     all rights reserved.
31 .\" Translated 1997-12-26, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
32 .\" Modified 2007-05-28, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.48
33 .\"
34 .TH STRCOLL 3  1993-04-12 "GNU" "Linux Programmer's Manual"
35 .\"O .SH NAME
36 .SH Ì¾Á°
37 .\"O strcoll \- compare two strings using the current locale
38 strcoll \- ¸½ºß¤Î¥í¥±¡¼¥ë¤ò»ÈÍѤ·¤ÆÆó¤Ä¤Îʸ»úÎó¤òÈæ³Ó¤¹¤ë
39 .\"O .SH SYNOPSIS
40 .SH ½ñ¼°
41 .nf
42 .B #include <string.h>
43 .sp
44 .BI "int strcoll(const char *" s1 ", const char *" s2 );
45 .fi
46 .\"O .SH DESCRIPTION
47 .SH ÀâÌÀ
48 .\"O The
49 .\"O .BR strcoll ()
50 .\"O function compares the two strings \fIs1\fP and
51 .\"O \fIs2\fP.
52 \fbstrcoll\fP() ´Ø¿ô¤ÏÆó¤Ä¤Îʸ»úÎó \fIs1\fP ¤È \fIs2\fP ¤òÈæ³Ó¤¹¤ë¡£
53 .\"O It returns an integer less than, equal to, or greater
54 .\"O than zero if \fIs1\fP is found, respectively, to be less than,
55 .\"O to match, or be greater than \fIs2\fP.
56 ¤³¤Î´Ø¿ô¤Ï¡¢\fIs1\fP ¤¬ \fIs2\fP ¤è¤ê¤â¾®¤µ¤¤¤«¡¢Åù¤·¤¤¤«¡¢Â礭¤¤¤«¤Ë¤è¤Ã¤Æ
57 ¤½¤ì¤¾¤ìÉé¤ÎÀ°¿ô¡¢0¡¢Àµ¤ÎÀ°¿ô¤òÊÖ¤¹¡£
58 .\"O The comparison is based on
59 .\"O strings interpreted as appropriate for the program's current locale
60 .\"O for category \fBLC_COLLATE\fP.  (See
61 .\"O .BR setlocale (3).)
62 Èæ³Ó¤Ï¡¢¥×¥í¥°¥é¥à¤Î¸½ºß¤Î¥í¥±¡¼¥ë¤Î \fBLC_COLLATE\fP ¥«¥Æ¥´¥ê¤Ë±þ¤¸¤Æ
63 ²ò¼á¤µ¤ì¤¿Ê¸»úÎó¤Ë´ð¤Å¤¤¤Æ¹Ô¤ï¤ì¤ë
64 .RB ( setlocale (3)
65 »²¾È)¡£
66 .\"O .SH "RETURN VALUE"
67 .SH ÊÖ¤êÃÍ
68 .\"O The
69 .\"O .BR strcoll ()
70 .\"O function returns an integer less than, equal to,
71 .\"O or greater than zero if \fIs1\fP is found, respectively, to be less
72 .\"O than, to match, or be greater than \fIs2\fP, when both are interpreted
73 .\"O as appropriate for the current locale.
74 .BR strcoll ()
75 ´Ø¿ô¤Ï¡¢\fIs1\fP ¤¬ \fIs2\fP ¤è¤ê¤â¾®¤µ¤¤¤«¡¢Åù¤·¤¤¤«¡¢
76 Â礭¤¤¤«¤Ë¤è¤Ã¤Æ¡¢¤½¤ì¤¾¤ìÉé¤ÎÀ°¿ô¡¢0¡¢Àµ¤ÎÀ°¿ô¤òÊÖ¤¹¡£
77 ¤É¤Á¤é¤Îʸ»úÎó¤â¸½ºß¤Î¥í¥±¡¼¥ë¤Ë±þ¤¸¤Æ²ò¼á¤µ¤ì¤¿¤â¤Î¤¬»ÈÍѤµ¤ì¤ë¡£
78 .\"O .SH "CONFORMING TO"
79 .SH ½àµò
80 SVr4, 4.3BSD, C89, C99.
81 .\"O .SH NOTES
82 .SH Ãí°Õ
83 .\"O In the \fI"POSIX"\fP or \fI"C"\fP locales
84 .\"O .BR strcoll ()
85 .\"O is equivalent to
86 .\"O .BR strcmp (3).
87 \fI"POSIX"\fP ¤ª¤è¤Ó \fI"C"\fP ¥í¥±¡¼¥ë¤Ë¤ª¤¤¤Æ¤Ï¡¢
88 .BR strcoll ()
89 ¤Ï
90 .BR strcmp (3)
91 ¤ÈÅù²Á¤Ç¤¢¤ë¡£
92 .\"O .SH "SEE ALSO"
93 .SH ´ØÏ¢¹àÌÜ
94 .BR bcmp (3),
95 .BR memcmp (3),
96 .BR setlocale (3),
97 .BR strcasecmp (3),
98 .BR strcmp (3),
99 .BR strxfrm (3)