/usr/lib/emboss/include/ajreg.h is in emboss-lib 6.3.1-6ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | #ifdef __cplusplus
extern "C"
{
#endif
/******************************************************************************
**
** AJAX regular expression functions
**
******************************************************************************/
#ifndef ajreg_h
#define ajreg_h
#include "ajax.h"
#include "pcre_config.h"
#include "pcre_internal.h"
#include "pcreposix.h"
#define AJREG_OVECSIZE 30
/* @data AjPRegexp ************************************************************
**
** PCRE expression internals, wrapped for AJAX calls
**
** @alias AjSRegexp
** @alias AjORegexp
**
** @attr pcre [real_pcre*] PCRE compiled expression
** @attr extra [pcre_extra*] PCRE study data (if available, else NULL)
** @attr ovector [int*] Output vector offsets
** @attr orig [const char*] Original string
** @attr ovecsize [int] Output vector size
** @attr Padding [char[4]] Padding to alignment boundary
******************************************************************************/
typedef struct AjSRegexp {
real_pcre *pcre;
pcre_extra *extra;
int *ovector;
const char* orig;
int ovecsize;
char Padding[4];
} AjORegexp;
#define AjPRegexp AjORegexp*
/*
** Prototype definitions
*/
/* constructors */
AjPRegexp ajRegComp (const AjPStr rexp);
AjPRegexp ajRegCompC (const char* rexp);
AjPRegexp ajRegCompCase (const AjPStr rexp);
AjPRegexp ajRegCompCaseC (const char* rexp);
/* execute expression match */
AjBool ajRegExec (AjPRegexp prog, const AjPStr str);
AjBool ajRegExecC (AjPRegexp prog, const char* str);
/* test substrings */
ajint ajRegLenI (const AjPRegexp rp, ajint isub);
ajint ajRegOffset (const AjPRegexp rp);
ajint ajRegOffsetI (const AjPRegexp rp, ajint isub);
/* get substrings */
AjBool ajRegPre (const AjPRegexp rp, AjPStr* dest);
AjBool ajRegPost (const AjPRegexp rp, AjPStr* post);
AjBool ajRegPostC (const AjPRegexp rp, const char** post);
AjBool ajRegSubI (const AjPRegexp rp, ajint isub, AjPStr* dest);
/* destructor */
void ajRegFree (AjPRegexp* pexp);
void ajRegTrace (const AjPRegexp rexp);
void ajRegExit (void);
/*
** End of prototype definitions
*/
#endif
#ifdef __cplusplus
}
#endif
|