OSDN Git Service

(split) LDP v3.30, v3.31 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / strxfrm.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:41:28 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1998 SHOJI Yasushi all rights reserved.
30 .\" Translated Fri Jun 26 1998 by SHOJI Yasushi <yashi@yashi.com>
31 .\" Updated & Modefied Sun Mar 7 1999 by Shouichi Saito
32 .\"
33 .TH STRXFRM 3 2010-09-20 "GNU" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .\"O strxfrm \- string transformation
36 .SH Ì¾Á°
37 strxfrm \- Ê¸»úÎó¤ÎÊÑ´¹
38 .SH ½ñ¼°
39 .nf
40 .B #include <string.h>
41 .sp
42 .BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n );
43 .fi
44 .\"O .SH DESCRIPTION
45 .\"O The
46 .\"O .BR strxfrm ()
47 .\"O function transforms the \fIsrc\fP string into a
48 .\"O form such that the result of
49 .\"O .BR strcmp (3)
50 .\"O on two strings that have
51 .\"O been transformed with
52 .\"O .BR strxfrm ()
53 .\"O is the same as the result of
54 .\"O .BR strcoll (3)
55 .\"O on the two strings before their transformation.
56 .\"O The first \fIn\fP characters of the transformed string are placed in
57 .\"O \fIdest\fP.
58 .\"O The transformation is based on the program's current
59 .\"O locale for category \fBLC_COLLATE\fP.  (See
60 .\"O .BR setlocale (3)).
61 .SH ÀâÌÀ
62 .BR strxfrm ()
63 ´Ø¿ô¤Ïʸ»úÎó \fIsrc\fP ¤ËÂФ·¤Æ¡¢¼¡¤Î¾ò·ï¤òËþ¤¿¤¹¤è¤¦
64 ¤ÊÊÑ´¹¤ò¤¹¤ë: ¡Ö¤¢¤ëÆó¤Ä¤Îʸ»úÎó¤ËÂФ·¤Æ¡¢¤½¤ì¤¾¤ì¤ò
65 .BR strxfrm ()
66 ¤ÇÊÑ´¹¤·¤Æ¤«¤é
67 .BR strcmp (3)
68 ¤·¤¿·ë²Ì¤È¡¢
69 .BR strxfrm ()
70 ¤Ë¤è¤ëÊÑ´¹
71 ¤ò¹Ô¤ï¤º¤Ë
72 .BR strcoll (3)
73 ¤·¤¿·ë²Ì¤ÈƱ¤¸¡×
74 ÊÑ´¹¤·¤¿Ê¸»úÎó¤ÎÀèƬ¤«¤é \fIn\fP Ê¸»úʬ¤¬ \fIdest\fP ¤ËÂåÆþ¤µ¤ì¤ë¡£
75 ÊÑ´¹¤Ï¡¢¥«¥Æ¥´¥ê \fBLC_COLLATE\fP ¤ËÂФ¹¤ë¡¢¥×¥í¥°¥é¥à¤Î¸½ºß¤Î¥í¥±¡¼¥ë
76 ¤Ë´ð¤Å¤¤¤Æ¹Ô¤ï¤ì¤ë
77 .RB ( setlocale (3)
78 ¤ò»²¾È¤Î¤³¤È)¡£
79 .\"O .SH "RETURN VALUE"
80 .\"O The
81 .\"O .BR strxfrm ()
82 .\"O function returns the number of bytes required to
83 .\"O store the transformed string in \fIdest\fP excluding the
84 .\"O terminating \(aq\\0\(aq character.
85 .\"O If the value returned is \fIn\fP or more, the
86 .\"O contents of \fIdest\fP are indeterminate.
87 .SH ÊÖ¤êÃÍ
88 .BR strxfrm ()
89 ´Ø¿ô¤Ï¡¢ÊÑ´¹¤µ¤ì¤¿Ê¸»úÎó¤ò \fIdest\fP ¤ËÂåÆþ¤¹¤ë¤È¤­¤Ë
90 ɬÍפʥХ¤¥È¿ô¤«¤é¡¢½ªÃ¼¤Î \(aq\\0\(aq Ê¸»ú¤Îʬ¤ò°ú¤¤¤¿¤â¤Î¤òÊÖ¤¹¡£¤â¤·ÊÖ¤êÃÍ
91 ¤¬ \fIn\fP °Ê¾å¤Î¾ì¹ç¡¢ \fIdest\fP ¤ÎÆâÍƤÏÉÔÄê¤È¤Ê¤ë¡£
92 .SH ½àµò
93 SVr4, 4.3BSD, C89, C99.
94 .\"O .SH NOTES
95 .\"O In the \fI"POSIX"\fP or \fI"C"\fP locales
96 .\"O .BR strxfrm ()
97 .\"O is equivalent to
98 .\"O copying the string with
99 .\"O .BR strncpy (3).
100 .SH Ãí°Õ
101 \fI"POSIX"\fP ¤Þ¤¿¤Ï \fI"C"\fP ¥í¥±¡¼¥ë¤Ç¤Ï¡¢´Ø¿ô
102 .BR strxfrm ()
103 ¤Ï¡¢
104 ´Ø¿ô
105 .BR strncpy (3)
106 ¤ò»È¤Ã¤Æʸ»úÎó¤ò¥³¥Ô¡¼¤¹¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
107 .SH ´ØÏ¢¹àÌÜ
108 .BR bcmp (3),
109 .BR memcmp (3),
110 .BR setlocale (3),
111 .BR strcasecmp (3),
112 .BR strcmp (3),
113 .BR strcoll (3),
114 .BR string (3)