OSDN Git Service

c6cc7844676b2c528c70bf6279eda48bfc827613
[linuxjm/LDP_man-pages.git] / draft / man3 / wcwidth.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 Sat Oct 23 20:06:18 JST 1999
15 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
16 .\" Updated Fri Aug 16 01:32:21 JST 2002
17 .\"           by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
18 .\"
19 .TH WCWIDTH 3  2011-09-28 "GNU" "Linux Programmer's Manual"
20 .\"O .SH NAME
21 .SH 名前
22 .\"O wcwidth \- determine columns needed for a wide character
23 wcwidth \- ワイド文字が必要とするカラム数を調べる
24 .\"O .SH SYNOPSIS
25 .SH 書式
26 .nf
27 .B #define _XOPEN_SOURCE
28 .B #include <wchar.h>
29 .sp
30 .BI "int wcwidth(wchar_t " c );
31 .fi
32 .\"O .SH DESCRIPTION
33 .SH 説明
34 .\"O The
35 .\"O .BR wcwidth ()
36 .\"O function returns the number of columns
37 .\"O needed to represent the wide character \fIc\fP.
38 .\"O If \fIc\fP is a printable wide character, the value
39 .\"O is at least 0.
40 .\"O If \fIc\fP is null wide character (L\(aq\\0\(aq), the value is 0.
41 .\"O Otherwise \-1 is returned.
42 .BR wcwidth ()
43 関数は、ワイド文字 \fIc\fP を表現するために必要なカラム
44 数を返す。\fIc\fP が印刷可能文字ならば、この値は 0 以上である。
45 \fIc\fP が NULL ワイド文字 (L\(aq\\0\(aq) ならば、値は 0 である。
46 それ以外の場合には \-1 が返される。
47 .\"O .SH "RETURN VALUE"
48 .SH 返り値
49 .\"O The
50 .\"O .BR wcwidth ()
51 .\"O function returns the number of
52 .\"O column positions for \fIc\fP.
53 .BR wcwidth ()
54 関数は、\fIc\fP の表現に必要なカラム数を返す。
55 .\"O .SH "CONFORMING TO"
56 .SH 準拠
57 POSIX.1-2001.
58
59 .\"O Note that glibc before 2.2.5 used the prototype
60 glibc 2.2.5 以前では以下のプロトタイプ宣言が使用されていたことに
61 注意すること。
62 .br
63 .nf
64 .BI "int wcwidth(wint_t " c );
65 .fi
66 .\"O .SH NOTES
67 .SH 注意
68 .\"O The behavior of
69 .\"O .BR wcwidth ()
70 .\"O depends on the
71 .\"O .B LC_CTYPE
72 .\"O category of the
73 .\"O current locale.
74 .BR wcwidth ()
75 の動作は、現在のロケールの
76 .B LC_CTYPE
77 カテゴリに依存する。
78 .\"O .SH "SEE ALSO"
79 .SH 関連項目
80 .BR iswprint (3),
81 .BR wcswidth (3),
82 .BR feature_test_macros (7)