SimpleKernel
1.17.0
Loading...
Searching...
No Matches
sk_ctype.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#ifdef __cplusplus
8
extern
"C"
{
9
#endif
10
11
// 检查字符是否为字母或数字
12
int
isalnum
(
int
c);
13
// 检查字符是否为字母
14
int
isalpha
(
int
c);
15
// 检查字符是否为空白字符(空格或制表符)
16
int
isblank
(
int
c);
17
// 检查字符是否为控制字符
18
int
iscntrl
(
int
c);
19
// 检查字符是否为十进制数字(0-9)
20
int
isdigit
(
int
c);
21
// 检查字符是否为可打印字符(不包括空格)
22
int
isgraph
(
int
c);
23
// 检查字符是否为小写字母
24
int
islower
(
int
c);
25
// 检查字符是否为可打印字符(包括空格)
26
int
isprint
(
int
c);
27
// 检查字符是否为标点符号
28
int
ispunct
(
int
c);
29
// 检查字符是否为空白字符(空格、制表符、换行符等)
30
int
isspace
(
int
c);
31
// 检查字符是否为大写字母
32
int
isupper
(
int
c);
33
// 检查字符是否为十六进制数字(0-9、a-f、A-F)
34
int
isxdigit
(
int
c);
35
// 将字符转换为小写
36
int
tolower
(
int
c);
37
// 将字符转换为大写
38
int
toupper
(
int
c);
39
40
#ifdef __cplusplus
41
}
42
#endif
tolower
#define tolower
Definition
sk_ctype_test.cpp:20
isxdigit
#define isxdigit
Definition
sk_ctype_test.cpp:19
isblank
#define isblank
Definition
sk_ctype_test.cpp:10
isgraph
#define isgraph
Definition
sk_ctype_test.cpp:13
isprint
#define isprint
Definition
sk_ctype_test.cpp:15
iscntrl
#define iscntrl
Definition
sk_ctype_test.cpp:11
isdigit
#define isdigit
Definition
sk_ctype_test.cpp:12
isupper
#define isupper
Definition
sk_ctype_test.cpp:18
isalnum
#define isalnum
Definition
sk_ctype_test.cpp:8
isspace
#define isspace
Definition
sk_ctype_test.cpp:17
toupper
#define toupper
Definition
sk_ctype_test.cpp:21
isalpha
#define isalpha
Definition
sk_ctype_test.cpp:9
islower
#define islower
Definition
sk_ctype_test.cpp:14
ispunct
#define ispunct
Definition
sk_ctype_test.cpp:16
src
libc
include
sk_ctype.h
Generated by
1.9.8