PostgreSQL Source Code: src/include/snowball/libstemmer/api.h Source File (original) (raw)

Go to the documentation of this file.

1#ifndef SNOWBALL_API_H_INCLUDED

2#define SNOWBALL_API_H_INCLUDED

3

4typedef unsigned char symbol;

5

6/* Or replace 'char' above with 'short' for 16 bit characters.

7

8 More precisely, replace 'char' with whatever type guarantees the

9 character width you need. Note however that sizeof(symbol) should divide

10 HEAD, defined in snowball_runtime.h as 2*sizeof(int), without remainder,

11 otherwise there is an alignment problem. In the unlikely event of a problem

12 here, consult Martin Porter.

13*/

14

20

21#ifdef __cplusplus

22extern "C" {

23#endif

24

27

29

30#ifdef __cplusplus

31}

32#endif

33

34#endif

int SN_set_current(struct SN_env *z, int size, const symbol *s)

void SN_delete_env(struct SN_env *z)

struct SN_env * SN_new_env(int alloc_size)