附錄 G <cctype>

字元分類函數

They check whether the character passed as parameter belongs to a certain category:

字元是否為字母或數字 (function )

字元是否為字母 (function )

字元是否為白空白 (function )

字元是否為控制字元 (function )

字元是否為數字 (function )

字元是否有形狀 (function )

字元是否為小寫字母 (function )

字元是否為可列印 (isgraph() + 空白) (function )

字元是否為標點符號 (isgraph() - 字母 - 數字) (function )

字元是否為空白/Tab (function )

字元是否為大寫字母 (function )

字元是否為16進位數字 (function )

將大寫轉成小寫 (function )

將小寫轉成大寫 (function )

Character conversion functions

Two functions that convert between letter cases: