towlower

Section: C Library Functions (3)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

towlower, towlower_l - ワイド文字 1 個を小文字に変換する  

ライブラリ

標準 C ライブラリ (libc,~-lc)  

書式

#include <wctype.h>

wint_t towlower(wint_t wc);
wint_t towlower_l(wint_t wc, locale_t locale);

glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):

towlower_l():

    Since glibc 2.10:
        _XOPEN_SOURCE >= 700
    Before glibc 2.10:
        _GNU_SOURCE
 

説明

towlower() 関数は、 tolower(3) 関数に対応するワイド文字関数である。 wc が大文字のワイド文字で、現在のロケールで対応する小文字が存在する場合、 wc に対応する小文字が返される。 それ以外の場合には、 wc は変更されずに返される。

towlower_l() 関数も同様の動作を行うが、 locale で指定されたロケールでの文字列型の情報に基づき変換が行われる点が異なる。 locale が特別なロケールオブジェクト LC_GLOBAL_LOCALE の場合、もしくは locale が有効なロケールオブジェクトハンドルでない場合、 towlower_l() の動作は未定義である。

引数 wc は、 指定されたロケールで有効な wchar_t で表現できる文字、または値 WEOF でなければならない。  

返り値

wc が小文字に変換可能だった場合、 towlower() は対応する小文字を返す。 そうでない場合、 wc を返す。  

属性

この節で使用されている用語の説明については、 attributes(7) を参照。
インターフェース属性値
towlower() Thread safetyMT-Safe locale
towlower_l() Thread safetyMT-Safe
 

標準規格

towlower()
C11, POSIX.1-2008 (XSI).
towlower_l()
POSIX.1-2008.
 

標準規格

towlower()
C99, POSIX.1-2001 (XSI). Obsolete in POSIX.1-2008 (XSI).
towlower_l()
glibc 2.3. POSIX.1-2008.
 

注意

これらの関数の動作は、ロケールの LC_CTYPE カテゴリーに依存する。

These functions are not very appropriate for dealing with Unicode characters, because Unicode knows about three cases: upper, lower, and title case.  

関連項目

iswlower(3), towctrans(3), towupper(3), locale(7)


 

Index

名前
ライブラリ
書式
説明
返り値
属性
標準規格
標準規格
注意
関連項目

This document was created by man2html, using the manual pages.