最終更新日時:
が更新

履歴 編集

function
<cwctype>

std::iswblank(C++11)

namespace std {
  int iswblank(wint_t wc);
}

概要

ワイド文字wcが空白類文字 (スペースと水平タブ)であるかを判定する。判定は、ロケールのLC_CTYPEカテゴリの影響を受ける。

戻り値

wcが空白類文字 (スペースと水平タブ)であると判定されれば非ゼロの値を、そうでなければ0を返す。

例

#include <cwctype>
#include <iostream>

int main()
{
  std::cout << std::boolalpha;
  std::cout << (std::iswblank(L' ') != 0) << std::endl;
  std::cout << (std::iswblank(L'a') != 0) << std::endl;
}

出力

true
false

バージョン

言語

  • C++11

関連項目

  • isblank : 1バイト文字に対する同じ判定
  • iswctype : 種別を実行時に指定して判定する