OSDN Git Service

(split) LDP: draft snapshots from latest ja.po(s).
[linuxjm/LDP_man-pages.git] / draft / man3 / strxfrm.3
index 745cc5f..5af26c1 100644 (file)
 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
 .\"     386BSD man pages
 .\" Modified Sun Jul 25 10:41:28 1993 by Rik Faith (faith@cs.unc.edu)
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 1998 SHOJI Yasushi all rights reserved.
-.\" Translated Fri Jun 26 1998 by SHOJI Yasushi <yashi@yashi.com>
-.\" Updated & Modefied Sun Mar 7 1999 by Shouichi Saito
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH STRXFRM 3  2011-09-28 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.\"O strxfrm \- string transformation
-.SH Ì¾Á°
-strxfrm \- Ê¸»úÎó¤ÎÊÑ´¹
-.SH ½ñ¼°
+.\"*******************************************************************
+.TH STRXFRM 3 2012\-05\-10 GNU "Linux Programmer's Manual"
+.SH 名前
+strxfrm \- 文字列の変換
+.SH 書式
 .nf
-.B #include <string.h>
+\fB#include <string.h>\fP
 .sp
-.BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n );
+\fBsize_t strxfrm(char *\fP\fIdest\fP\fB, const char *\fP\fIsrc\fP\fB, size_t \fP\fIn\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
-.\"O The
-.\"O .BR strxfrm ()
-.\"O function transforms the \fIsrc\fP string into a
-.\"O form such that the result of
-.\"O .BR strcmp (3)
-.\"O on two strings that have
-.\"O been transformed with
-.\"O .BR strxfrm ()
-.\"O is the same as the result of
-.\"O .BR strcoll (3)
-.\"O on the two strings before their transformation.
-.\"O The first \fIn\fP characters of the transformed string are placed in
-.\"O \fIdest\fP.
-.\"O The transformation is based on the program's current
-.\"O locale for category \fBLC_COLLATE\fP.  (See
-.\"O .BR setlocale (3)).
-.SH ÀâÌÀ
-.BR strxfrm ()
-´Ø¿ô¤Ïʸ»úÎó \fIsrc\fP ¤ËÂФ·¤Æ¡¢¼¡¤Î¾ò·ï¤òËþ¤¿¤¹¤è¤¦
-¤ÊÊÑ´¹¤ò¤¹¤ë: ¡Ö¤¢¤ëÆó¤Ä¤Îʸ»úÎó¤ËÂФ·¤Æ¡¢¤½¤ì¤¾¤ì¤ò
-.BR strxfrm ()
-¤ÇÊÑ´¹¤·¤Æ¤«¤é
-.BR strcmp (3)
-¤·¤¿·ë²Ì¤È¡¢
-.BR strxfrm ()
-¤Ë¤è¤ëÊÑ´¹
-¤ò¹Ô¤ï¤º¤Ë
-.BR strcoll (3)
-¤·¤¿·ë²Ì¤ÈƱ¤¸¡×
-ÊÑ´¹¤·¤¿Ê¸»úÎó¤ÎÀèƬ¤«¤é \fIn\fP Ê¸»úʬ¤¬ \fIdest\fP ¤ËÂåÆþ¤µ¤ì¤ë¡£
-ÊÑ´¹¤Ï¡¢¥«¥Æ¥´¥ê \fBLC_COLLATE\fP ¤ËÂФ¹¤ë¡¢¥×¥í¥°¥é¥à¤Î¸½ºß¤Î¥í¥±¡¼¥ë
-¤Ë´ð¤Å¤¤¤Æ¹Ô¤ï¤ì¤ë
-.RB ( setlocale (3)
-¤ò»²¾È¤Î¤³¤È)¡£
-.\"O .SH "RETURN VALUE"
-.\"O The
-.\"O .BR strxfrm ()
-.\"O function returns the number of bytes required to
-.\"O store the transformed string in \fIdest\fP excluding the
-.\"O terminating null byte (\(aq\\0\(aq).
-.\"O If the value returned is \fIn\fP or more, the
-.\"O contents of \fIdest\fP are indeterminate.
-.SH ÊÖ¤êÃÍ
-.BR strxfrm ()
-´Ø¿ô¤Ï¡¢ÊÑ´¹¤µ¤ì¤¿Ê¸»úÎó¤ò \fIdest\fP ¤ËÂåÆþ¤¹¤ë¤È¤­¤Ë
-ɬÍפʥХ¤¥È¿ô¤«¤é¡¢½ªÃ¼¤Î NULL ¥Ð¥¤¥È (\(aq\\0\(aq) ¤Îʬ¤ò
-°ú¤¤¤¿¤â¤Î¤òÊÖ¤¹¡£¤â¤·ÊÖ¤êÃͤ¬ \fIn\fP °Ê¾å¤Î¾ì¹ç¡¢
-\fIdest\fP ¤ÎÆâÍƤÏÉÔÄê¤È¤Ê¤ë¡£
-.SH ½àµò
+.SH 説明
+\fBstrxfrm\fP() 関数は、文字列 \fIsrc\fP に対して、次のような変換を行う。
+変換は、ある二つの文字列に対して、それぞれを \fBstrxfrm\fP() で変換
+した文字列に対して \fBstrcmp\fP(3) を行った結果が、
+変換を行わずに\fBstrcoll\fP(3) を行った結果と同じとなるように行う。
+変換された文字列の先頭から \fIn\fP バイト分が \fIdest\fP に代入される。
+変換は、プログラムの現在のロケールのカテゴリ \fBLC_COLLATE\fP に
+基づいて行われる (\fBsetlocale\fP(3) を参照)。
+.SH 返り値
+\fBstrxfrm\fP()  関数は、変換された文字列を \fIdest\fP に代入するときに 必要なバイト数から、終端の NULL バイト
+(\(aq\e0\(aq) の分を 引いたものを返す。もし返り値が \fIn\fP 以上の場合、 \fIdest\fP の内容は不定となる。
+.SH 準拠
 SVr4, 4.3BSD, C89, C99.
-.\"O .SH NOTES
-.\"O In the \fI"POSIX"\fP or \fI"C"\fP locales
-.\"O .BR strxfrm ()
-.\"O is equivalent to
-.\"O copying the string with
-.\"O .BR strncpy (3).
-.SH Ãí°Õ
-\fI"POSIX"\fP ¤Þ¤¿¤Ï \fI"C"\fP ¥í¥±¡¼¥ë¤Ç¤Ï¡¢´Ø¿ô
-.BR strxfrm ()
-¤Ï¡¢
-´Ø¿ô
-.BR strncpy (3)
-¤ò»È¤Ã¤Æʸ»úÎó¤ò¥³¥Ô¡¼¤¹¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR bcmp (3),
-.BR memcmp (3),
-.BR setlocale (3),
-.BR strcasecmp (3),
-.BR strcmp (3),
-.BR strcoll (3),
-.BR string (3)
+.SH 注意
+\fI"POSIX"\fP または \fI"C"\fP ロケールでは、関数 \fBstrxfrm\fP()  は、 関数 \fBstrncpy\fP(3)
+を使って文字列をコピーするのと同じである。
+.SH 関連項目
+\fBbcmp\fP(3), \fBmemcmp\fP(3), \fBsetlocale\fP(3), \fBstrcasecmp\fP(3), \fBstrcmp\fP(3),
+\fBstrcoll\fP(3), \fBstring\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。