名稱空間
變體
操作

標準庫標頭檔案 <cctype>

來自 cppreference.com
 
 
標準庫標頭檔案
演算法
<algorithm>
<numeric>
字串
<cctype>
<cstring>
<cuchar> (C++11)
<cwchar>
<cwctype>
<string_view> (C++17)
<string>
文字處理
<clocale>
<codecvt> (C++11/17/26*)
<locale>
<regex> (C++11)
<text_encoding> (C++26)   
數值
<cfenv> (C++11)
<cmath>
<complex>
<linalg> (C++26)
<numbers> (C++20)
<random> (C++11)
<simd> (C++26)
<valarray>
時間
<chrono> (C++11)
<ctime>
C 相容性
<ccomplex> (C++11/17/20*)
<ciso646> (直到 C++20)
<cstdalign> (C++11/17/20*)
<cstdbool> (C++11/17/20*)
<ctgmath> (C++11/17/20*)
 

此標頭檔案最初是 C 標準庫中的 <ctype.h>

此標頭檔案是 空終止位元組字串 庫的一部分。

函式

檢查字元是否為字母或數字
(函式) [編輯]
檢查字元是否為字母
(函式) [編輯]
檢查字元是否為小寫字母
(函式) [編輯]
檢查字元是否為大寫字母
(函式) [編輯]
檢查字元是否為數字
(函式) [編輯]
檢查字元是否為十六進位制數字
(函式) [編輯]
檢查字元是否為控制字元
(函式) [編輯]
檢查字元是否為圖形字元
(函式) [編輯]
檢查字元是否為空格字元
(函式) [編輯]
(C++11)
檢查字元是否為空白字元
(函式) [編輯]
檢查字元是否為可列印字元
(函式) [編輯]
檢查字元是否為標點符號
(函式) [編輯]
將字元轉換為小寫
(函式) [編輯]
將字元轉換為大寫
(函式) [編輯]

[編輯] 提要

namespace std {
  int isalnum(int c);
  int isalpha(int c);
  int isblank(int c);
  int iscntrl(int c);
  int isdigit(int c);
  int isgraph(int c);
  int islower(int c);
  int isprint(int c);
  int ispunct(int c);
  int isspace(int c);
  int isupper(int c);
  int isxdigit(int c);
  int tolower(int c);
  int toupper(int c);
}