MISR Toolkit  1.5.1
Data Structures | Macros | Typedefs | Enumerations | Functions
regex.h File Reference
#include "tre-config.h"
#include <sys/types.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 __DLL_IMPORT__   __declspec(dllimport)
 
#define __DLL_EXPORT__   __declspec(dllexport)
 
#define LIBTRE_DLL_IMPEXP
 
#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_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 unsigned char 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

LIBTRE_DLL_IMPEXP int regcomp (regex_t *preg, const char *regex, int cflags)
 
LIBTRE_DLL_IMPEXP int regexec (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 
LIBTRE_DLL_IMPEXP size_t regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
 
LIBTRE_DLL_IMPEXP void regfree (regex_t *preg)
 
LIBTRE_DLL_IMPEXP int regncomp (regex_t *preg, const char *regex, size_t len, int cflags)
 
LIBTRE_DLL_IMPEXP int regnexec (const regex_t *preg, const char *string, size_t len, size_t nmatch, regmatch_t pmatch[], int eflags)
 
LIBTRE_DLL_IMPEXP int regaexec (const regex_t *preg, const char *string, regamatch_t *match, regaparams_t params, int eflags)
 
LIBTRE_DLL_IMPEXP int reganexec (const regex_t *preg, const char *string, size_t len, regamatch_t *match, regaparams_t params, int eflags)
 
LIBTRE_DLL_IMPEXP void regaparams_default (regaparams_t *params)
 
LIBTRE_DLL_IMPEXP int reguexec (const regex_t *preg, const tre_str_source *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 
LIBTRE_DLL_IMPEXP char * tre_version (void)
 
LIBTRE_DLL_IMPEXP int tre_config (int query, void *result)
 
LIBTRE_DLL_IMPEXP int tre_have_backrefs (const regex_t *preg)
 
LIBTRE_DLL_IMPEXP int tre_have_approx (const regex_t *preg)
 

Macro Definition Documentation

◆ __DLL_EXPORT__

#define __DLL_EXPORT__   __declspec(dllexport)

Definition at line 27 of file regex.h.

◆ __DLL_IMPORT__

#define __DLL_IMPORT__   __declspec(dllimport)

Definition at line 26 of file regex.h.

◆ LIBTRE_DLL_IMPEXP

#define LIBTRE_DLL_IMPEXP

Definition at line 46 of file regex.h.

◆ RE_DUP_MAX

#define RE_DUP_MAX   255

Definition at line 161 of file regex.h.

◆ REG_APPROX_MATCHER

#define REG_APPROX_MATCHER   (REG_NOTEOL << 1)

Definition at line 147 of file regex.h.

◆ REG_BACKTRACKING_MATCHER

#define REG_BACKTRACKING_MATCHER   (REG_APPROX_MATCHER << 1)

Definition at line 148 of file regex.h.

◆ REG_BASIC

#define REG_BASIC   0

Definition at line 137 of file regex.h.

◆ REG_EXTENDED

#define REG_EXTENDED   1

Definition at line 131 of file regex.h.

◆ REG_ICASE

#define REG_ICASE   (REG_EXTENDED << 1)

Definition at line 132 of file regex.h.

◆ REG_LITERAL

#define REG_LITERAL   (REG_NOSUB << 1)

Definition at line 138 of file regex.h.

◆ REG_NEWLINE

#define REG_NEWLINE   (REG_ICASE << 1)

Definition at line 133 of file regex.h.

◆ REG_NOSPEC

#define REG_NOSPEC   REG_LITERAL

Definition at line 154 of file regex.h.

◆ REG_NOSUB

#define REG_NOSUB   (REG_NEWLINE << 1)

Definition at line 134 of file regex.h.

◆ REG_NOTBOL

#define REG_NOTBOL   1

Definition at line 143 of file regex.h.

◆ REG_NOTEOL

#define REG_NOTEOL   (REG_NOTBOL << 1)

Definition at line 144 of file regex.h.

◆ REG_RIGHT_ASSOC

#define REG_RIGHT_ASSOC   (REG_LITERAL << 1)

Definition at line 139 of file regex.h.

◆ REG_UNGREEDY

#define REG_UNGREEDY   (REG_RIGHT_ASSOC << 1)

Definition at line 140 of file regex.h.

Typedef Documentation

◆ regoff_t

typedef int regoff_t

Definition at line 99 of file regex.h.

◆ tre_char_t

typedef unsigned char tre_char_t

Definition at line 263 of file regex.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 287 of file regex.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 111 of file regex.h.

Function Documentation

◆ regaexec()

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

◆ reganexec()

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

◆ regaparams_default()

LIBTRE_DLL_IMPEXP void regaparams_default ( regaparams_t params)

◆ regcomp()

LIBTRE_DLL_IMPEXP int regcomp ( regex_t preg,
const char *  regex,
int  cflags 
)

◆ regerror()

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

◆ regexec()

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

◆ regfree()

LIBTRE_DLL_IMPEXP void regfree ( regex_t preg)

◆ regncomp()

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

◆ regnexec()

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

◆ reguexec()

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

◆ tre_config()

LIBTRE_DLL_IMPEXP int tre_config ( int  query,
void *  result 
)

◆ tre_have_approx()

LIBTRE_DLL_IMPEXP int tre_have_approx ( const regex_t preg)

◆ tre_have_backrefs()

LIBTRE_DLL_IMPEXP int tre_have_backrefs ( const regex_t preg)

◆ tre_version()

LIBTRE_DLL_IMPEXP char* tre_version ( void  )

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