Namespaces
Variants

std:: iswlower

From cppreference.net
定義於ヘッダ <cwctype>
int iswlower ( std:: wint_t ch ) ;

指定されたワイド文字が小文字であるかどうかをチェックします。つまり、 abcdefghijklmnopqrstuvwxyz または現在のロケールに固有の小文字のいずれかであるかどうかを判定します。

ch の値が wchar_t として表現可能でなく、かつマクロ WEOF の値とも等しくない場合、動作は未定義です。

目次

パラメータ

ch - ワイド文字

戻り値

ワイド文字が小文字の場合、非ゼロの値。それ以外の場合、ゼロ。

注記

ISO 30112 は、POSIX lowerカテゴリに含まれるUnicode文字を指定しています。

#include <clocale>
#include <cwctype>
#include <iostream>
int main()
{
    wchar_t c = L'\u0444'; // Cyrillic small letter ef ('ф')
    std::cout << std::hex << std::showbase << std::boolalpha
              << "in the default locale, iswlower("
              << static_cast<std::wint_t>(c) << ") = "
              << static_cast<bool>(std::iswlower(c)) << '\n';
    std::setlocale(LC_ALL, "en_US.utf8");
    std::cout << "in Unicode locale, iswlower("
              << static_cast<std::wint_t>(c) << ") = "
              << static_cast<bool>(std::iswlower(c)) << '\n';
}

出力:

in the default locale, iswlower(0x444) = false
in Unicode locale, iswlower(0x444) = true

関連項目

ロケールによって小文字として分類されるかどうかをチェックする
(関数テンプレート)
文字が小文字かどうかをチェックする
(関数)
**注記**: このHTMLテーブルの行には、翻訳すべき日本語テキストが含まれていません。すべての内容は以下のいずれかに該当します: - HTMLタグと属性(翻訳対象外) - ` `タグ内のC++関連テキスト(翻訳対象外) - 数値、文字コード、文字列(翻訳対象外) - 数学記号「≠0」(翻訳対象外) 元のテキストは既に技術文書として適切な形式となっています。
ASCII値 文字

iscntrl
iswcntrl

isprint
iswprint

isspace
iswspace

isblank
iswblank

isgraph
iswgraph

ispunct
iswpunct

isalnum
iswalnum

isalpha
iswalpha

isupper
iswupper

islower
iswlower

isdigit
iswdigit

isxdigit
iswxdigit

10進数 16進数 8進数
0–8 \x0 \x8 \0 \10 制御コード ( NUL など) ≠0 0 0 0 0 0 0 0 0 0 0 0
9 \x9 \11 タブ ( \t ) ≠0 0 ≠0 ≠0 0 0 0 0 0 0 0 0
10–13 \xA \xD \12 \15 空白文字 ( \n , \v , \f , \r ) ≠0 0 ≠0 0 0 0 0 0 0 0 0 0
14–31 \xE \x1F \16 \37 制御コード ≠0 0 0 0 0 0 0 0 0 0 0 0
32 \x20 \40 スペース 0 ≠0 ≠0 ≠0 0 0 0 0 0 0 0 0
33–47 \x21 \x2F \41 \57 !"#$%&'()*+,-./ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
48–57 \x30 \x39 \60 \71 0123456789 0 ≠0 0 0 ≠0 0 ≠0 0 0 0 ≠0 ≠0
58–64 \x3A \x40 \72 \100 :;<=>?@ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
65–70 \x41 \x46 \101 \106 ABCDEF 0 ≠0 0 0 ≠0 0 ≠0 ≠0 ≠0 0 0 ≠0
71–90 \x47 \x5A \107 \132 GHIJKLMNOP
QRSTUVWXYZ
0 ≠0 0 0 ≠0 0 ≠0 ≠0 ≠0 0 0 0
91–96 \x5B \x60 \133 \140 [\]^_` 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
97–102 \x61 \x66 \141 \146 abcdef 0 ≠0 0 0 ≠0 0 ≠0 ≠0 0 ≠0 0 ≠0
103–122 \x67 \x7A \147 \172 ghijklmnop
qrstuvwxyz
0 ≠0 0 0 ≠0 0 ≠0 ≠0 0 ≠0 0 0
123–126 \x7B \x7E \172 \176 {|}~ 0 ≠0 0 0 ≠0 ≠0 0 0 0 0 0 0
127 \x7F \177 バックスペース文字 ( DEL ) ≠0 0 0 0 0 0 0 0 0 0 0 0