Character classification and conversion.
More...
|
| int | ft_isalnum (int c) |
| | Checks if a character is alphanumeric.
|
| |
| int | ft_isalpha (int c) |
| | Checks if a character is alphabetic.
|
| |
| int | ft_isascii (int c) |
| | Checks if a character is a valid ASCII character (0-127).
|
| |
| int | ft_isdigit (int c) |
| | Checks if a character is a digit ('0'-'9').
|
| |
| bool | ft_isincharset (char c, const char *charset) |
| | Checks if a character is present in a character set.
|
| |
| int | ft_isprint (int c) |
| | Checks if a character is printable (32-126).
|
| |
| int | ft_isspace (char c) |
| | Checks if a character is whitespace (9-13).
|
| |
| int | ft_tolower (int c) |
| | Converts an uppercase letter to lowercase.
|
| |
| int | ft_toupper (int c) |
| | Converts a lowercase letter to uppercase.
|
| |
Character classification and conversion.
Functions to test and transform individual characters.
◆ ft_isalnum()
Checks if a character is alphanumeric.
- Parameters
-
- Returns
- Non-zero if alphanumeric, 0 otherwise.
◆ ft_isalpha()
Checks if a character is alphabetic.
- Parameters
-
- Returns
- Non-zero if alphabetic, 0 otherwise.
◆ ft_isascii()
Checks if a character is a valid ASCII character (0-127).
- Parameters
-
- Returns
- Non-zero if ASCII, 0 otherwise.
◆ ft_isdigit()
Checks if a character is a digit ('0'-'9').
- Parameters
-
- Returns
- Non-zero if digit, 0 otherwise.
◆ ft_isincharset()
| bool ft_isincharset |
( |
char |
c, |
|
|
const char * |
charset |
|
) |
| |
Checks if a character is present in a character set.
- Parameters
-
| c | Character to check. |
| charset | Null-terminated string of characters to match against. |
- Returns
- true if found in charset, false otherwise.
◆ ft_isprint()
Checks if a character is printable (32-126).
- Parameters
-
- Returns
- Non-zero if printable, 0 otherwise.
◆ ft_isspace()
Checks if a character is whitespace (9-13).
- Parameters
-
- Returns
- Non-zero if whitespace, 0 otherwise.
◆ ft_tolower()
Converts an uppercase letter to lowercase.
- Parameters
-
- Returns
- Lowercase equivalent if uppercase, otherwise unchanged.
◆ ft_toupper()
Converts a lowercase letter to uppercase.
- Parameters
-
- Returns
- Uppercase equivalent if lowercase, otherwise unchanged.