OSDN Git Service

c8779ee3f3d282ac8bbf3589ba7f336ca9d3dd85
[linuxjm/LDP_man-pages.git] / draft / man3 / wcsncasecmp.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" References consulted:
9 .\"   GNU glibc-2 source code and manual
10 .\"   Dinkumware C library reference http://www.dinkumware.com/
11 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .\"
13 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
14 .\" Translated Mon Oct 18 22:59:06 JST 1999
15 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
16 .\"
17 .TH WCSNCASECMP 3 2010-09-15 "GNU" "Linux Programmer's Manual"
18 .\"O .SH NAME
19 .SH 名前
20 .\"O wcsncasecmp \- compare two fixed-size wide-character strings, ignoring case
21 wcsncasecmp \- 大文字と小文字を区別せず、2 つの固定長のワイド文字文字列を比較する
22 .\"O .SH SYNOPSIS
23 .SH 書式
24 .nf
25 .B #include <wchar.h>
26 .sp
27 .BI "int wcsncasecmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
28 .fi
29 .sp
30 .in -4n
31 .\"O Feature Test Macro Requirements for glibc (see
32 .\"O .BR feature_test_macros (7)):
33 glibc 向けの機能検査マクロの要件
34 .RB ( feature_test_macros (7)
35 参照):
36 .in
37 .sp
38 .BR wcsncasecmp ():
39 .PD 0
40 .ad l
41 .RS 4
42 .TP 4
43 .\"O Since glibc 2.10:
44 glibc 2.10 以降:
45 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
46 .TP
47 .\"O Before glibc 2.10:
48 glibc 2.10 より前:
49 _GNU_SOURCE
50 .RE
51 .ad
52 .PD
53 .\"O .SH DESCRIPTION
54 .SH 説明
55 .\"O The
56 .\"O .BR wcsncasecmp ()
57 .\"O function is the wide-character equivalent of the
58 .\"O .BR strncasecmp (3)
59 .\"O function.
60 .\"O It compares the wide-character string pointed to
61 .\"O by \fIs1\fP and the wide-character string
62 .\"O pointed to by \fIs2\fP, but at most
63 .\"O \fIn\fP wide characters from each string, ignoring case differences
64 .\"O .RB ( towupper (3),
65 .\"O .BR towlower (3)).
66 .BR wcsncasecmp ()
67 関数は、
68 .BR strncasecmp (3)
69 関数に対応するワイド文字関
70 数である。この関数は、\fIs1\fP が指すワイド文字文字列と \fIs2\fP が指
71 すワイド文字文字列を比較するが、最大でも先頭のワイド文字 \fIn\fP 個
72 しか比較しない。また、大文字と小文字
73 .RB ( towupper (3),
74 .BR towlower (3))
75 は区別しない。
76 .\"O .SH "RETURN VALUE"
77 .SH 返り値
78 .\"O The
79 .\"O .BR wcsncasecmp ()
80 .\"O function returns zero
81 .\"O if the wide-character strings at
82 .\"O \fIs1\fP and \fIs2\fP,
83 .\"O truncated to at most length \fIn\fP, are equal except
84 .\"O for case distinctions.
85 .\"O It returns a positive integer if truncated \fIs1\fP is
86 .\"O greater than truncated \fIs2\fP, ignoring case.
87 .\"O It returns a negative integer
88 .\"O if truncated \fIs1\fP is smaller than truncated \fIs2\fP, ignoring case.
89 .BR wcsncasecmp ()
90 関数は、\fIs1\fP と \fIs2\fP がそれぞれ指す文字列を
91 \fIn\fP 文字に収まるように切り詰めたものを、大文字と小文字の違いを無視
92 して比較したときに等しければ 0 を返す。この関数は、大文字と小文字を区
93 別しない場合に、\fIs1\fP を切り詰めたものが \fIs2\fP を切り詰めたもの
94 より大きければ正の値を返す。この関数は、大文字と小文字を区別しない場合
95 に、\fIs1\fP を切り詰めたものが \fIs2\fP を切り詰めたものより小さけれ
96 ば負の値を返す。
97 .\"O .SH VERSIONS
98 .SH バージョン
99 .\"O The
100 .\"O .BR wcsncasecmp ()
101 .\"O function is provided in glibc since version 2.1.
102 .BR wcsncasecmp ()
103 関数は glibc バージョン 2.1 以降で提供されている。
104 .\"O .SH "CONFORMING TO"
105 .SH 準拠
106 POSIX.1-2008.
107 .\"O This function is not specified in POSIX.1-2001,
108 .\"O and is not widely available on other systems.
109 この関数は POSIX.1-2001 では規定されていないが、
110 Linux 以外の他のシステムで広く利用可能である。
111 .\"O .SH NOTES
112 .SH 注意
113 .\"O The behavior of
114 .\"O .BR wcsncasecmp ()
115 .\"O depends on the
116 .\"O .B LC_CTYPE
117 .\"O category of the
118 .\"O current locale.
119 .BR wcsncasecmp ()
120 の動作は、現在のロケールの
121 .B LC_CTYPE
122 カテゴリに依存する。
123 .\"O .SH "SEE ALSO"
124 .SH 関連項目
125 .BR strncasecmp (3),
126 .BR wcsncmp (3)