25     return (c >= 
'a' && c <= 
'z');
 
   33     return (c >= 
'A' && c <= 
'Z');
 
   49     return (c >= 
'0' && c <= 
'9');
 
   65     return (c == 
' ' || c == 
'\t');
 
   73     return (
risblank(c) || c == 
'\n' || c == 
'\r' || c == 
'\f' || c == 
'\v');
 
   81     return ((
risupper(c)) ? (c | (
'a' - 
'A')) : c);
 
   89     return ((
rislower(c)) ? (c & ~(
'a' - 
'A')) : c);
 
   98 static inline unsigned char rnibble(
char c)
 
  100     if (c >= 
'0' && c <= 
'9')
 
  102     if (c >= 
'a' && c <= 
'f')
 
  103         return (c - 
'a') + 10;
 
  104     if (c >= 
'A' && c <= 
'F')
 
  105         return (c - 
'A') + 10;
 
  115 static inline int rstreq(
const char *s1, 
const char *s2)
 
  117     return (strcmp(s1, s2) == 0);
 
  127 static inline int rstreqn(
const char *s1, 
const char *s2, 
size_t n)
 
  129     return (strncmp(s1, s2, n) == 0);
 
  180 size_t rstrlcpy(
char *dest, const 
char *src, 
size_t n);
 
  196 char * 
rpmhex(const uint8_t *p, 
size_t plen);
 
static RPM_GNUC_CONST int rtolower(int c)
Locale insensitive tolower(3)
 
RPM_GNUC_PURE unsigned int rstrhash(const char *string)
String hashing function.
 
char * rstrcat(char **dest, const char *src)
Concatenate two strings with dynamically (re)allocated memory.
 
static RPM_GNUC_CONST int rtoupper(int c)
Locale insensitive toupper(3)
 
static RPM_GNUC_CONST int risalpha(int c)
Locale insensitive isalpha(3)
 
static RPM_GNUC_CONST int risdigit(int c)
Locale insensitive isdigit(3)
 
RPM_GNUC_DEPRECATED char * pgpHexStr(const uint8_t *p, size_t plen)
Deprecated, do not use.
 
int int rvasprintf(char **strp, const char *fmt, va_list ap)
vasprintf() clone
 
RPM_GNUC_PURE int rstrcasecmp(const char *s1, const char *s2)
Locale insensitive strcasecmp(3).
 
static RPM_GNUC_CONST int rislower(int c)
Locale insensitive islower(3)
 
static RPM_GNUC_CONST int risspace(int c)
Locale insensitive isspace(3)
 
size_t rstrlcpy(char *dest, const char *src, size_t n)
strlcpy() clone: Copy src to string dest of size n.
 
static RPM_GNUC_CONST int risalnum(int c)
Locale insensitive isalnum(3)
 
char * rpmhex(const uint8_t *p, size_t plen)
Return hex formatted representation of bytes.
 
char * rstrscat(char **dest, const char *arg,...) RPM_GNUC_NULL_TERMINATED
Concatenate multiple strings with dynamically (re)allocated memory.
 
RPM_GNUC_PURE int rstrncasecmp(const char *s1, const char *s2, size_t n)
Locale insensitive strncasecmp(3).
 
static RPM_GNUC_CONST int risblank(int c)
Locale insensitive isblank(3)
 
static RPM_GNUC_CONST int risupper(int c)
Locale insensitive isupper(3)
 
int rasprintf(char **strp, const char *fmt,...) RPM_GNUC_PRINTF(2
asprintf() clone
 
static int rstreq(const char *s1, const char *s2)
Test for string equality.
 
static RPM_GNUC_CONST unsigned char rnibble(char c)
Convert hex to binary nibble.
 
static int rstreqn(const char *s1, const char *s2, size_t n)
Test for string equality.
 
Miscellaneous utility macros:
 
#define RPM_GNUC_DEPRECATED
 
#define RPM_GNUC_NULL_TERMINATED
 
#define RPM_GNUC_PRINTF(format_idx, arg_idx)