MISR Toolkit  1.5.1
Data Structures | Macros | Typedefs | Enumerations | Functions
tre.h File Reference
#include "tre-config.h"
#include <sys/types.h>
#include <wchar.h>

Go to the source code of this file.

Data Structures

struct  regex_t
 
struct  regmatch_t
 
struct  regaparams_t
 
struct  regamatch_t
 
struct  tre_str_source
 

Macros

#define REG_EXTENDED   1
 
#define REG_ICASE   (REG_EXTENDED << 1)
 
#define REG_NEWLINE   (REG_ICASE << 1)
 
#define REG_NOSUB   (REG_NEWLINE << 1)
 
#define REG_BASIC   0
 
#define REG_LITERAL   (REG_NOSUB << 1)
 
#define REG_RIGHT_ASSOC   (REG_LITERAL << 1)
 
#define REG_UNGREEDY   (REG_RIGHT_ASSOC << 1)
 
#define REG_USEBYTES   (REG_UNGREEDY << 1)
 
#define REG_NOTBOL   1
 
#define REG_NOTEOL   (REG_NOTBOL << 1)
 
#define REG_APPROX_MATCHER   (REG_NOTEOL << 1)
 
#define REG_BACKTRACKING_MATCHER   (REG_APPROX_MATCHER << 1)
 
#define REG_NOSPEC   REG_LITERAL
 
#define RE_DUP_MAX   255
 

Typedefs

typedef int regoff_t
 
typedef wchar_t tre_char_t
 

Enumerations

enum  reg_errcode_t {
  REG_OK = 0,
  REG_NOMATCH,
  REG_BADPAT,
  REG_ECOLLATE,
  REG_ECTYPE,
  REG_EESCAPE,
  REG_ESUBREG,
  REG_EBRACK,
  REG_EPAREN,
  REG_EBRACE,
  REG_BADBR,
  REG_ERANGE,
  REG_ESPACE,
  REG_BADRPT,
  REG_OK = 0,
  REG_NOMATCH,
  REG_BADPAT,
  REG_ECOLLATE,
  REG_ECTYPE,
  REG_EESCAPE,
  REG_ESUBREG,
  REG_EBRACK,
  REG_EPAREN,
  REG_EBRACE,
  REG_BADBR,
  REG_ERANGE,
  REG_ESPACE,
  REG_BADRPT
}
 
enum  {
  TRE_CONFIG_APPROX,
  TRE_CONFIG_WCHAR,
  TRE_CONFIG_MULTIBYTE,
  TRE_CONFIG_SYSTEM_ABI,
  TRE_CONFIG_VERSION
}
 

Functions

int tre_regcomp (regex_t *preg, const char *regex, int cflags)
 
int tre_regexec (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 
int tre_regcompb (regex_t *preg, const char *regex, int cflags)
 
int tre_regexecb (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 
size_t tre_regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
 
void tre_regfree (regex_t *preg)
 
int tre_regwcomp (regex_t *preg, const wchar_t *regex, int cflags)
 
int tre_regwexec (const regex_t *preg, const wchar_t *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 
int tre_regncomp (regex_t *preg, const char *regex, size_t len, int cflags)
 
int tre_regnexec (const regex_t *preg, const char *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags)
 
int tre_regncompb (regex_t *preg, const char *regex, size_t n, int cflags)
 
int tre_regnexecb (const regex_t *preg, const char *str, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags)
 
int tre_regwncomp (regex_t *preg, const wchar_t *regex, size_t len, int cflags)
 
int tre_regwnexec (const regex_t *preg, const wchar_t *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags)
 
int tre_regaexec (const regex_t *preg, const char *string, regamatch_t *match, regaparams_t params, int eflags)
 
int tre_reganexec (const regex_t *preg, const char *string, size_t len, regamatch_t *match, regaparams_t params, int eflags)
 
int tre_regaexecb (const regex_t *preg, const char *string, regamatch_t *match, regaparams_t params, int eflags)
 
int tre_regawexec (const regex_t *preg, const wchar_t *string, regamatch_t *match, regaparams_t params, int eflags)
 
int tre_regawnexec (const regex_t *preg, const wchar_t *string, size_t len, regamatch_t *match, regaparams_t params, int eflags)
 
void tre_regaparams_default (regaparams_t *params)
 
int tre_reguexec (const regex_t *preg, const tre_str_source *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 
char * tre_version (void)
 
int tre_config (int query, void *result)
 
int tre_have_backrefs (const regex_t *preg)
 
int tre_have_approx (const regex_t *preg)
 

Macro Definition Documentation

◆ RE_DUP_MAX

#define RE_DUP_MAX   255

Definition at line 130 of file tre.h.

◆ REG_APPROX_MATCHER

#define REG_APPROX_MATCHER   (REG_NOTEOL << 1)

Definition at line 116 of file tre.h.

◆ REG_BACKTRACKING_MATCHER

#define REG_BACKTRACKING_MATCHER   (REG_APPROX_MATCHER << 1)

Definition at line 117 of file tre.h.

◆ REG_BASIC

#define REG_BASIC   0

Definition at line 104 of file tre.h.

◆ REG_EXTENDED

#define REG_EXTENDED   1

Definition at line 98 of file tre.h.

◆ REG_ICASE

#define REG_ICASE   (REG_EXTENDED << 1)

Definition at line 99 of file tre.h.

◆ REG_LITERAL

#define REG_LITERAL   (REG_NOSUB << 1)

Definition at line 105 of file tre.h.

◆ REG_NEWLINE

#define REG_NEWLINE   (REG_ICASE << 1)

Definition at line 100 of file tre.h.

◆ REG_NOSPEC

#define REG_NOSPEC   REG_LITERAL

Definition at line 123 of file tre.h.

◆ REG_NOSUB

#define REG_NOSUB   (REG_NEWLINE << 1)

Definition at line 101 of file tre.h.

◆ REG_NOTBOL

#define REG_NOTBOL   1

Definition at line 112 of file tre.h.

◆ REG_NOTEOL

#define REG_NOTEOL   (REG_NOTBOL << 1)

Definition at line 113 of file tre.h.

◆ REG_RIGHT_ASSOC

#define REG_RIGHT_ASSOC   (REG_LITERAL << 1)

Definition at line 106 of file tre.h.

◆ REG_UNGREEDY

#define REG_UNGREEDY   (REG_RIGHT_ASSOC << 1)

Definition at line 107 of file tre.h.

◆ REG_USEBYTES

#define REG_USEBYTES   (REG_UNGREEDY << 1)

Definition at line 109 of file tre.h.

Typedef Documentation

◆ regoff_t

typedef int regoff_t

Definition at line 66 of file tre.h.

◆ tre_char_t

typedef wchar_t tre_char_t

Definition at line 250 of file tre.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TRE_CONFIG_APPROX 
TRE_CONFIG_WCHAR 
TRE_CONFIG_MULTIBYTE 
TRE_CONFIG_SYSTEM_ABI 
TRE_CONFIG_VERSION 

Definition at line 276 of file tre.h.

◆ reg_errcode_t

Enumerator
REG_OK 
REG_NOMATCH 
REG_BADPAT 
REG_ECOLLATE 
REG_ECTYPE 
REG_EESCAPE 
REG_ESUBREG 
REG_EBRACK 
REG_EPAREN 
REG_EBRACE 
REG_BADBR 
REG_ERANGE 
REG_ESPACE 
REG_BADRPT 
REG_OK 
REG_NOMATCH 
REG_BADPAT 
REG_ECOLLATE 
REG_ECTYPE 
REG_EESCAPE 
REG_ESUBREG 
REG_EBRACK 
REG_EPAREN 
REG_EBRACE 
REG_BADBR 
REG_ERANGE 
REG_ESPACE 
REG_BADRPT 

Definition at line 78 of file tre.h.

Function Documentation

◆ tre_config()

int tre_config ( int  query,
void *  result 
)

◆ tre_have_approx()

int tre_have_approx ( const regex_t preg)

◆ tre_have_backrefs()

int tre_have_backrefs ( const regex_t preg)

◆ tre_regaexec()

int tre_regaexec ( const regex_t preg,
const char *  string,
regamatch_t match,
regaparams_t  params,
int  eflags 
)

◆ tre_regaexecb()

int tre_regaexecb ( const regex_t preg,
const char *  string,
regamatch_t match,
regaparams_t  params,
int  eflags 
)

◆ tre_reganexec()

int tre_reganexec ( const regex_t preg,
const char *  string,
size_t  len,
regamatch_t match,
regaparams_t  params,
int  eflags 
)

◆ tre_regaparams_default()

void tre_regaparams_default ( regaparams_t params)

◆ tre_regawexec()

int tre_regawexec ( const regex_t preg,
const wchar_t *  string,
regamatch_t match,
regaparams_t  params,
int  eflags 
)

◆ tre_regawnexec()

int tre_regawnexec ( const regex_t preg,
const wchar_t *  string,
size_t  len,
regamatch_t match,
regaparams_t  params,
int  eflags 
)

◆ tre_regcomp()

int tre_regcomp ( regex_t preg,
const char *  regex,
int  cflags 
)

◆ tre_regcompb()

int tre_regcompb ( regex_t preg,
const char *  regex,
int  cflags 
)

◆ tre_regerror()

size_t tre_regerror ( int  errcode,
const regex_t preg,
char *  errbuf,
size_t  errbuf_size 
)

◆ tre_regexec()

int tre_regexec ( const regex_t preg,
const char *  string,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ tre_regexecb()

int tre_regexecb ( const regex_t preg,
const char *  string,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ tre_regfree()

void tre_regfree ( regex_t preg)

◆ tre_regncomp()

int tre_regncomp ( regex_t preg,
const char *  regex,
size_t  len,
int  cflags 
)

◆ tre_regncompb()

int tre_regncompb ( regex_t preg,
const char *  regex,
size_t  n,
int  cflags 
)

◆ tre_regnexec()

int tre_regnexec ( const regex_t preg,
const char *  string,
size_t  len,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ tre_regnexecb()

int tre_regnexecb ( const regex_t preg,
const char *  str,
size_t  len,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ tre_reguexec()

int tre_reguexec ( const regex_t preg,
const tre_str_source string,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ tre_regwcomp()

int tre_regwcomp ( regex_t preg,
const wchar_t *  regex,
int  cflags 
)

◆ tre_regwexec()

int tre_regwexec ( const regex_t preg,
const wchar_t *  string,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ tre_regwncomp()

int tre_regwncomp ( regex_t preg,
const wchar_t *  regex,
size_t  len,
int  cflags 
)

◆ tre_regwnexec()

int tre_regwnexec ( const regex_t preg,
const wchar_t *  string,
size_t  len,
size_t  nmatch,
regmatch_t  pmatch[],
int  eflags 
)

◆ tre_version()

char* tre_version ( void  )

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:54