.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" References consulted: .\" Linux libc source code .\" 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) .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1998 SHOJI Yasushi all rights reserved. .\" Translated Fri Jun 26 1998 by SHOJI Yasushi .\" Updated & Modefied Sun Mar 7 1999 by Shouichi Saito .\" Updated 2012-05-29, Akihiro MOTOKI .\" Updated 2013-07-22, Akihiro MOTOKI .\" .TH STRXFRM 3 2019\-03\-06 GNU "Linux Programmer's Manual" .SH 名前 strxfrm \- 文字列の変換 .SH 書式 .nf \fB#include \fP .PP \fBsize_t strxfrm(char *\fP\fIdest\fP\fB, const char *\fP\fIsrc\fP\fB, size_t \fP\fIn\fP\fB);\fP .fi .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 に代入するときに 必要なバイト数から、終端のヌルバイト (\(aq\e0\(aq) の分を 引いたものを返す。もし返り値が \fIn\fP 以上の場合、 \fIdest\fP の内容は不定となる。 .SH 属性 この節で使用されている用語の説明については、 \fBattributes\fP(7) を参照。 .TS allbox; lb lb lb l l l. インターフェース 属性 値 T{ \fBstrxfrm\fP() T} Thread safety MT\-Safe locale .TE .SH 準拠 POSIX.1\-2001, POSIX.1\-2008, C89, C99, SVr4, 4.3BSD. .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 プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。