Rizin
unix-like reverse engineering framework and cli tools
rz_str_util.h File Reference

Go to the source code of this file.

Macros

#define IS_NULLSTR(x)   (!(x) || !*(x))
 
#define IS_WHITECHAR(x)   ((x) == ' ' || (x) == '\t' || (x) == '\n' || (x) == '\r')
 
#define IS_SEPARATOR(x)
 
#define IS_HEXCHAR(x)   (((x) >= '0' && (x) <= '9') || ((x) >= 'a' && (x) <= 'f') || ((x) >= 'A' && (x) <= 'F'))
 
#define IS_PRINTABLE(x)   ((x) >= ' ' && (x) <= '~')
 
#define IS_DIGIT(x)   ((x) >= '0' && (x) <= '9')
 
#define IS_OCTAL(x)   ((x) >= '0' && (x) <= '7')
 
#define IS_WHITESPACE(x)   ((x) == ' ' || (x) == '\t')
 
#define IS_UPPER(c)   ((c) >= 'A' && (c) <= 'Z')
 
#define IS_LOWER(c)   ((c) >= 'a' && (c) <= 'z')
 

Macro Definition Documentation

◆ IS_DIGIT

#define IS_DIGIT (   x)    ((x) >= '0' && (x) <= '9')

Definition at line 11 of file rz_str_util.h.

◆ IS_HEXCHAR

#define IS_HEXCHAR (   x)    (((x) >= '0' && (x) <= '9') || ((x) >= 'a' && (x) <= 'f') || ((x) >= 'A' && (x) <= 'F'))

Definition at line 9 of file rz_str_util.h.

◆ IS_LOWER

#define IS_LOWER (   c)    ((c) >= 'a' && (c) <= 'z')

Definition at line 15 of file rz_str_util.h.

◆ IS_NULLSTR

#define IS_NULLSTR (   x)    (!(x) || !*(x))

Definition at line 4 of file rz_str_util.h.

◆ IS_OCTAL

#define IS_OCTAL (   x)    ((x) >= '0' && (x) <= '7')

Definition at line 12 of file rz_str_util.h.

◆ IS_PRINTABLE

#define IS_PRINTABLE (   x)    ((x) >= ' ' && (x) <= '~')

Definition at line 10 of file rz_str_util.h.

◆ IS_SEPARATOR

#define IS_SEPARATOR (   x)
Value:
((x) == ' ' || (x) == '\t' || (x) == '\n' || (x) == '\r' || (x) == ' ' || \
(x) == ',' || (x) == ';' || (x) == ':' || (x) == '[' || (x) == ']' || \
(x) == '(' || (x) == ')' || (x) == '{' || (x) == '}')
int x
Definition: mipsasm.c:20

Definition at line 6 of file rz_str_util.h.

◆ IS_UPPER

#define IS_UPPER (   c)    ((c) >= 'A' && (c) <= 'Z')

Definition at line 14 of file rz_str_util.h.

◆ IS_WHITECHAR

#define IS_WHITECHAR (   x)    ((x) == ' ' || (x) == '\t' || (x) == '\n' || (x) == '\r')

Definition at line 5 of file rz_str_util.h.

◆ IS_WHITESPACE

#define IS_WHITESPACE (   x)    ((x) == ' ' || (x) == '\t')

Definition at line 13 of file rz_str_util.h.