toupperのヘルプ・マニュアル
日本語 英語
toupper --help
man toupper
TOUPPER(3) Linux Programmer’s Manual TOUPPER(3)
名前
toupper, tolower - 小文字を大文字にする。または大文字を小文字にする。
書式
#include
int toupper(int c);
int tolower(int c);
説明
toupper() は、 c が大文字にできる文字であるならば大文字に変換する。
tolower() は c が小文字にできる文字であるならば小文字に変換する。
もし c が unsigned char の値でないか EOF ならば、これらの関数の動作は未
定義である。
返り値
変換ができれば変換後の文字を返す。できなければ変換前の c を返す。
準拠
C89, C99, 4.3BSD.
バグ
なにが大文字でなにが小文字なのかということの詳細は、現在のロケールに 依
存している。たとえば、デフォルトの "C" ロケールではウムラウトを認識しな
いため、それらの文字は変換できない。
いくつかの非英語ロケールでは、対応する大文字を持たない小文字が存在す る
。ドイツ語のエスツェットが一つの例である。
関連項目
isalpha(3), setlocale(3), towlower(3), towupper(3), locale(7)
GNU 1993-04-04 TOUPPER(3)
TOUPPER(3) Linux Programmer’s Manual TOUPPER(3)
NAME
toupper, tolower - convert letter to upper or lower case
SYNOPSIS
#include
int toupper(int c);
int tolower(int c);
DESCRIPTION
toupper() converts the letter c to upper case, if possible.
tolower() converts the letter c to lower case, if possible.
If c is not an unsigned char value, or EOF, the behavior of these func-
tions is undefined.
RETURN VALUE
The value returned is that of the converted letter, or c if the conver-
sion was not possible.
CONFORMING TO
C89, C99, 4.3BSD.
BUGS
The details of what constitutes an uppercase or lowercase letter depend
on the current locale. For example, the default "C" locale does not
know about umlauts, so no conversion is done for them.
In some non-English locales, there are lowercase letters with no corre-
sponding uppercase equivalent; the German sharp s is one example.
SEE ALSO
isalpha(3), setlocale(3), towlower(3), towupper(3), locale(7)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1993-04-04 TOUPPER(3)