dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Macros | Functions | Variables
c-ctype.h File Reference

(b95c96c27)

#include <stdbool.h>
#include <dpkg/macros.h>
Include dependency graph for c-ctype.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define C_CTYPE_BIT(bit)   (1 << (bit))
 

Functions

bool c_isbits (int c, enum c_ctype_bit bits)
 Check if the character is bits ctype.
 

Variables

enum DPKG_ATTR_ENUM_FLAGS c_ctype_bit
 
 C_CTYPE_BLANK = C_CTYPE_BIT(0)
 
 C_CTYPE_WHITE = C_CTYPE_BIT(1)
 
 C_CTYPE_SPACE = C_CTYPE_BIT(2)
 
 C_CTYPE_UPPER = C_CTYPE_BIT(3)
 
 C_CTYPE_LOWER = C_CTYPE_BIT(4)
 
 C_CTYPE_DIGIT = C_CTYPE_BIT(5)
 
 C_CTYPE_ALPHA = C_CTYPE_UPPER | C_CTYPE_LOWER
 
 C_CTYPE_ALNUM = C_CTYPE_ALPHA | C_CTYPE_DIGIT
 

Macro Definition Documentation

◆ C_CTYPE_BIT

#define C_CTYPE_BIT (   bit)    (1 << (bit))

Function Documentation

◆ c_isbits()

bool c_isbits ( int  c,
enum c_ctype_bit  bits 
)

Check if the character is bits ctype.

Variable Documentation

◆ C_CTYPE_ALNUM

C_CTYPE_ALNUM = C_CTYPE_ALPHA | C_CTYPE_DIGIT

◆ C_CTYPE_ALPHA

C_CTYPE_ALPHA = C_CTYPE_UPPER | C_CTYPE_LOWER

◆ c_ctype_bit

enum DPKG_ATTR_ENUM_FLAGS c_ctype_bit

◆ C_CTYPE_BLANK

C_CTYPE_BLANK = C_CTYPE_BIT(0)

◆ C_CTYPE_DIGIT

C_CTYPE_DIGIT = C_CTYPE_BIT(5)

◆ C_CTYPE_LOWER

C_CTYPE_LOWER = C_CTYPE_BIT(4)

◆ C_CTYPE_SPACE

C_CTYPE_SPACE = C_CTYPE_BIT(2)

◆ C_CTYPE_UPPER

C_CTYPE_UPPER = C_CTYPE_BIT(3)

◆ C_CTYPE_WHITE

C_CTYPE_WHITE = C_CTYPE_BIT(1)