dpkg 1.21.11
Macros | Enumerations | Functions
c-ctype.h File Reference

(33f375f87)

#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))
 

Enumerations

enum  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
}
 

Functions

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

Macro Definition Documentation

◆ C_CTYPE_BIT

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

Enumeration Type Documentation

◆ c_ctype_bit

Enumerator
C_CTYPE_BLANK 
C_CTYPE_WHITE 
C_CTYPE_SPACE 
C_CTYPE_UPPER 
C_CTYPE_LOWER 
C_CTYPE_DIGIT 
C_CTYPE_ALPHA 
C_CTYPE_ALNUM 

Function Documentation

◆ c_isbits()

bool c_isbits ( int  c,
enum c_ctype_bit  bits 
)

Check if the character is bits ctype.