recutils
Macros | Enumerations | Functions
rec-utils.h File Reference
#include <config.h>
#include <rec.h>
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define REC_INT_RE   "-?((0x[0-9a-fA-F]+)|[0-9]+)"
 
#define REC_INT_SIZE_RE
 

Enumerations

enum  rec_size_condition_e {
  SIZE_COND_E , SIZE_COND_L , SIZE_COND_LE , SIZE_COND_G ,
  SIZE_COND_GE
}
 

Functions

bool rec_atoi (const char *str, int *number)
 
bool rec_atod (const char *str, double *number)
 
char * rec_extract_url (const char *str)
 
char * rec_extract_file (const char *str)
 
char * rec_extract_type (const char *str)
 
size_t rec_extract_size (const char *str)
 
enum rec_size_condition_e rec_extract_size_condition (const char *str)
 
bool rec_match (const char *str, const char *regexp)
 
bool rec_match_insensitive (const char *str, const char *regexp)
 
bool rec_blank_p (char c)
 
bool rec_digit_p (char c)
 
bool rec_letter_p (char c)
 
bool rec_parse_int (const char **str, int *num)
 
void rec_skip_blanks (const char **str)
 
bool rec_parse_regexp (const char **str, const char *re, char **result)
 
char * rec_concat_strings (const char *str1, const char *str2, const char *str3)
 
int rec_timespec_subtract (struct timespec *result, struct timespec *x, struct timespec *y)
 
uint32_t rec_endian_swap (uint32_t number)
 

Macro Definition Documentation

◆ REC_INT_RE

#define REC_INT_RE   "-?((0x[0-9a-fA-F]+)|[0-9]+)"

◆ REC_INT_SIZE_RE

#define REC_INT_SIZE_RE
Value:
"^[ \t\n]*(>|<|>=|<=)?[ \t\n]*" \
REC_INT_RE \
"[ \t\n]*$"

Enumeration Type Documentation

◆ rec_size_condition_e

Enumerator
SIZE_COND_E 
SIZE_COND_L 
SIZE_COND_LE 
SIZE_COND_G 
SIZE_COND_GE 

Function Documentation

◆ rec_atod()

bool rec_atod ( const char *  str,
double *  number 
)

◆ rec_atoi()

bool rec_atoi ( const char *  str,
int *  number 
)

◆ rec_blank_p()

bool rec_blank_p ( char  c)

◆ rec_concat_strings()

char* rec_concat_strings ( const char *  str1,
const char *  str2,
const char *  str3 
)

◆ rec_digit_p()

bool rec_digit_p ( char  c)

◆ rec_endian_swap()

uint32_t rec_endian_swap ( uint32_t  number)

◆ rec_extract_file()

char* rec_extract_file ( const char *  str)

◆ rec_extract_size()

size_t rec_extract_size ( const char *  str)

◆ rec_extract_size_condition()

enum rec_size_condition_e rec_extract_size_condition ( const char *  str)

◆ rec_extract_type()

char* rec_extract_type ( const char *  str)

◆ rec_extract_url()

char* rec_extract_url ( const char *  str)

◆ rec_letter_p()

bool rec_letter_p ( char  c)

◆ rec_match()

bool rec_match ( const char *  str,
const char *  regexp 
)

◆ rec_match_insensitive()

bool rec_match_insensitive ( const char *  str,
const char *  regexp 
)

◆ rec_parse_int()

bool rec_parse_int ( const char **  str,
int *  num 
)

◆ rec_parse_regexp()

bool rec_parse_regexp ( const char **  str,
const char *  re,
char **  result 
)

◆ rec_skip_blanks()

void rec_skip_blanks ( const char **  str)

◆ rec_timespec_subtract()

int rec_timespec_subtract ( struct timespec *  result,
struct timespec *  x,
struct timespec *  y 
)