Character types.
More...
Go to the source code of this file.
|
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) |
|
static int | isdigit (int character) |
| Check if character is a decimal digit. More...
|
|
static int | isxdigit (int character) |
| Check if character is a hexadecimal digit. More...
|
|
static int | isupper (int character) |
| Check if character is an upper-case letter. More...
|
|
static int | islower (int character) |
| Check if character is a lower-case letter. More...
|
|
static int | isalpha (int character) |
| Check if character is alphabetic. More...
|
|
static int | isalnum (int character) |
| Check if character is alphanumeric. More...
|
|
static int | isprint (int character) |
| Check if character is printable. More...
|
|
static int | tolower (int character) |
| Convert character to lower case. More...
|
|
static int | toupper (int character) |
| Convert character to upper case. More...
|
|
int | isspace (int character) |
| Check to see if character is a space. More...
|
|
Character types.
Definition in file ctype.h.
◆ FILE_LICENCE()
FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL |
| ) |
|
◆ isdigit()
static int isdigit |
( |
int |
character | ) |
|
|
inlinestatic |
◆ isxdigit()
static int isxdigit |
( |
int |
character | ) |
|
|
inlinestatic |
Check if character is a hexadecimal digit.
- Parameters
-
- Return values
-
is_xdigit | Character is a hexadecimal digit |
Definition at line 29 of file ctype.h.
31 return ( ( ( character >=
'0' ) && ( character <=
'9' ) ) ||
32 ( ( character >=
'A' ) && ( character <=
'F' ) ) ||
33 ( ( character >=
'a' ) && ( character <=
'f' ) ) );
◆ isupper()
static int isupper |
( |
int |
character | ) |
|
|
inlinestatic |
Check if character is an upper-case letter.
- Parameters
-
- Return values
-
is_upper | Character is an upper-case letter |
Definition at line 42 of file ctype.h.
44 return ( ( character >=
'A' ) && ( character <=
'Z' ) );
Referenced by isalpha(), and tolower().
◆ islower()
static int islower |
( |
int |
character | ) |
|
|
inlinestatic |
Check if character is a lower-case letter.
- Parameters
-
- Return values
-
is_lower | Character is a lower-case letter |
Definition at line 53 of file ctype.h.
55 return ( ( character >=
'a' ) && ( character <=
'z' ) );
Referenced by isalpha(), and toupper().
◆ isalpha()
static int isalpha |
( |
int |
character | ) |
|
|
inlinestatic |
Check if character is alphabetic.
- Parameters
-
- Return values
-
is_alpha | Character is alphabetic |
Definition at line 64 of file ctype.h.
static int islower(int character)
Check if character is a lower-case letter.
static int isupper(int character)
Check if character is an upper-case letter.
References islower(), and isupper().
Referenced by getkey(), and isalnum().
◆ isalnum()
static int isalnum |
( |
int |
character | ) |
|
|
inlinestatic |
Check if character is alphanumeric.
- Parameters
-
- Return values
-
is_alnum | Character is alphanumeric |
Definition at line 75 of file ctype.h.
static int isalpha(int character)
Check if character is alphabetic.
static int isdigit(int character)
Check if character is a decimal digit.
References isalpha(), and isdigit().
◆ isprint()
static int isprint |
( |
int |
character | ) |
|
|
inlinestatic |
◆ tolower()
static int tolower |
( |
int |
character | ) |
|
|
inlinestatic |
◆ toupper()
static int toupper |
( |
int |
character | ) |
|
|
inlinestatic |
◆ isspace()
int isspace |
( |
int |
character | ) |
|
Check to see if character is a space.
- Parameters
-
- Return values
-
isspace | Character is a space |
Definition at line 41 of file ctype.c.
43 switch ( character ) {
Referenced by base64_decode(), cmdline_init(), http_parse_header(), http_token(), peerdist_discovery_reply_values(), pnm_ascii(), pnm_probe(), previous_word(), process_script(), script_probe(), split_command(), strtoul_pre(), and syslog_fix_name().