/usr/include/apertium-3.1/apertium/apertium_re.h is in libapertium3-3.1-0-dev 3.1.0-2.
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 | #ifndef _APERTIUM_RE_
#define _APERTIUM_RE_
#include <pcre.h>
#include <cstdio>
#include <string>
using namespace std;
class ApertiumRE
{
private:
bool empty;
pcre *re;
public:
ApertiumRE();
~ApertiumRE();
void read(FILE *);
void write(FILE *) const;
string match(string const &str) const;
void replace(string &str, string const &value) const;
void compile(string const &str);
};
#endif
|