xapian-core  2.0.0
Macros | Typedefs | Functions | Variables
dutch_porter.cc File Reference
#include <config.h>
#include "dutch_porter.h"
#include <stddef.h>
+ Include dependency graph for dutch_porter.cc:

Go to the source code of this file.

Macros

#define SNOWBALL_RUNTIME_THROW_EXCEPTIONS
 

Typedefs

typedef Xapian::Internal::Snowball::DutchPorter::SN_local SN_local
 

Functions

static int r_standard_suffix (struct SN_env *z)
 
static int r_undouble (struct SN_env *z)
 
static int r_R2 (struct SN_env *z)
 
static int r_R1 (struct SN_env *z)
 
static int r_mark_regions (struct SN_env *z)
 
static int r_en_ending (struct SN_env *z)
 
static int r_e_ending (struct SN_env *z)
 
static int r_postlude (struct SN_env *z)
 
static int r_prelude (struct SN_env *z)
 

Variables

static const symbol s_0 [] = { 'a' }
 
static const symbol s_1 [] = { 'e' }
 
static const symbol s_2 [] = { 'i' }
 
static const symbol s_3 [] = { 'o' }
 
static const symbol s_4 [] = { 'u' }
 
static const symbol s_5 [] = { 'Y' }
 
static const symbol s_6 [] = { 'I' }
 
static const symbol s_7 [] = { 'Y' }
 
static const symbol s_8 [] = { 'y' }
 
static const symbol s_9 [] = { 'i' }
 
static const symbol s_10 [] = { 'g', 'e', 'm' }
 
static const symbol s_11 [] = { 'h', 'e', 'i', 'd' }
 
static const symbol s_12 [] = { 'h', 'e', 'i', 'd' }
 
static const symbol s_13 [] = { 'e', 'n' }
 
static const symbol s_14 [] = { 'i', 'g' }
 
static const symbol s_0_1 [2] = { 0xC3, 0xA1 }
 
static const symbol s_0_2 [2] = { 0xC3, 0xA4 }
 
static const symbol s_0_3 [2] = { 0xC3, 0xA9 }
 
static const symbol s_0_4 [2] = { 0xC3, 0xAB }
 
static const symbol s_0_5 [2] = { 0xC3, 0xAD }
 
static const symbol s_0_6 [2] = { 0xC3, 0xAF }
 
static const symbol s_0_7 [2] = { 0xC3, 0xB3 }
 
static const symbol s_0_8 [2] = { 0xC3, 0xB6 }
 
static const symbol s_0_9 [2] = { 0xC3, 0xBA }
 
static const symbol s_0_10 [2] = { 0xC3, 0xBC }
 
static const struct among a_0 [11]
 
static const symbol s_1_1 [1] = { 'I' }
 
static const symbol s_1_2 [1] = { 'Y' }
 
static const struct among a_1 [3]
 
static const symbol s_2_0 [2] = { 'd', 'd' }
 
static const symbol s_2_1 [2] = { 'k', 'k' }
 
static const symbol s_2_2 [2] = { 't', 't' }
 
static const struct among a_2 [3]
 
static const symbol s_3_0 [3] = { 'e', 'n', 'e' }
 
static const symbol s_3_1 [2] = { 's', 'e' }
 
static const symbol s_3_2 [2] = { 'e', 'n' }
 
static const symbol s_3_3 [5] = { 'h', 'e', 'd', 'e', 'n' }
 
static const symbol s_3_4 [1] = { 's' }
 
static const struct among a_3 [5]
 
static const symbol s_4_0 [3] = { 'e', 'n', 'd' }
 
static const symbol s_4_1 [2] = { 'i', 'g' }
 
static const symbol s_4_2 [3] = { 'i', 'n', 'g' }
 
static const symbol s_4_3 [4] = { 'l', 'i', 'j', 'k' }
 
static const symbol s_4_4 [4] = { 'b', 'a', 'a', 'r' }
 
static const symbol s_4_5 [3] = { 'b', 'a', 'r' }
 
static const struct among a_4 [6]
 
static const symbol s_5_0 [2] = { 'a', 'a' }
 
static const symbol s_5_1 [2] = { 'e', 'e' }
 
static const symbol s_5_2 [2] = { 'o', 'o' }
 
static const symbol s_5_3 [2] = { 'u', 'u' }
 
static const struct among a_5 [4]
 
static const unsigned char g_v [] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
 
static const unsigned char g_v_I [] = { 1, 0, 0, 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
 
static const unsigned char g_v_j [] = { 17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
 

Macro Definition Documentation

◆ SNOWBALL_RUNTIME_THROW_EXCEPTIONS

#define SNOWBALL_RUNTIME_THROW_EXCEPTIONS

Definition at line 5 of file dutch_porter.cc.

Typedef Documentation

◆ SN_local

Definition at line 10 of file dutch_porter.cc.

Function Documentation

◆ r_e_ending()

static int r_e_ending ( struct SN_env z)
static

◆ r_en_ending()

static int r_en_ending ( struct SN_env z)
static

Definition at line 335 of file dutch_porter.cc.

References SN_env::c, eq_s_b(), g_v, SN_env::l, out_grouping_b_U(), r_R1(), r_undouble(), s_10, and slice_del().

Referenced by r_standard_suffix().

◆ r_mark_regions()

static int r_mark_regions ( struct SN_env z)
static

◆ r_postlude()

static int r_postlude ( struct SN_env z)
static

◆ r_prelude()

static int r_prelude ( struct SN_env z)
static

◆ r_R1()

static int r_R1 ( struct SN_env z)
static

Definition at line 289 of file dutch_porter.cc.

References SN_env::c.

Referenced by r_e_ending(), r_en_ending(), and r_standard_suffix().

◆ r_R2()

static int r_R2 ( struct SN_env z)
static

Definition at line 293 of file dutch_porter.cc.

References SN_env::c.

Referenced by r_standard_suffix().

◆ r_standard_suffix()

static int r_standard_suffix ( struct SN_env z)
static

◆ r_undouble()

static int r_undouble ( struct SN_env z)
static

Variable Documentation

◆ a_0

const struct among a_0[11]
static
Initial value:
= {
{ 0, 0, 0, 6, 0},
{ 2, s_0_1, -1, 1, 0},
{ 2, s_0_2, -2, 1, 0},
{ 2, s_0_3, -3, 2, 0},
{ 2, s_0_4, -4, 2, 0},
{ 2, s_0_5, -5, 3, 0},
{ 2, s_0_6, -6, 3, 0},
{ 2, s_0_7, -7, 4, 0},
{ 2, s_0_8, -8, 4, 0},
{ 2, s_0_9, -9, 5, 0},
{ 2, s_0_10, -10, 5, 0}
}
static const symbol s_0_4[2]
Definition: dutch_porter.cc:41
static const symbol s_0_5[2]
Definition: dutch_porter.cc:42
static const symbol s_0_8[2]
Definition: dutch_porter.cc:45
static const symbol s_0_1[2]
Definition: dutch_porter.cc:38
static const symbol s_0_7[2]
Definition: dutch_porter.cc:44
static const symbol s_0_6[2]
Definition: dutch_porter.cc:43
static const symbol s_0_2[2]
Definition: dutch_porter.cc:39
static const symbol s_0_10[2]
Definition: dutch_porter.cc:47
static const symbol s_0_3[2]
Definition: dutch_porter.cc:40
static const symbol s_0_9[2]
Definition: dutch_porter.cc:46

Definition at line 47 of file dutch_porter.cc.

Referenced by r_prelude().

◆ a_1

const struct among a_1[3]
static
Initial value:
= {
{ 0, 0, 0, 3, 0},
{ 1, s_1_1, -1, 2, 0},
{ 1, s_1_2, -2, 1, 0}
}
static const symbol s_1_2[1]
Definition: dutch_porter.cc:63
static const symbol s_1_1[1]
Definition: dutch_porter.cc:62

Definition at line 63 of file dutch_porter.cc.

Referenced by r_postlude().

◆ a_2

const struct among a_2[3]
static
Initial value:
= {
{ 2, s_2_0, 0, -1, 0},
{ 2, s_2_1, 0, -1, 0},
{ 2, s_2_2, 0, -1, 0}
}
static const symbol s_2_2[2]
Definition: dutch_porter.cc:72
static const symbol s_2_0[2]
Definition: dutch_porter.cc:70
static const symbol s_2_1[2]
Definition: dutch_porter.cc:71

Definition at line 72 of file dutch_porter.cc.

Referenced by r_undouble().

◆ a_3

const struct among a_3[5]
static
Initial value:
= {
{ 3, s_3_0, 0, 2, 0},
{ 2, s_3_1, 0, 3, 0},
{ 2, s_3_2, 0, 2, 0},
{ 5, s_3_3, -1, 1, 0},
{ 1, s_3_4, 0, 3, 0}
}
static const symbol s_3_1[2]
Definition: dutch_porter.cc:80
static const symbol s_3_0[3]
Definition: dutch_porter.cc:79
static const symbol s_3_3[5]
Definition: dutch_porter.cc:82
static const symbol s_3_4[1]
Definition: dutch_porter.cc:83
static const symbol s_3_2[2]
Definition: dutch_porter.cc:81

Definition at line 83 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ a_4

const struct among a_4[6]
static
Initial value:
= {
{ 3, s_4_0, 0, 1, 0},
{ 2, s_4_1, 0, 2, 0},
{ 3, s_4_2, 0, 1, 0},
{ 4, s_4_3, 0, 3, 0},
{ 4, s_4_4, 0, 4, 0},
{ 3, s_4_5, 0, 5, 0}
}
static const symbol s_4_3[4]
Definition: dutch_porter.cc:95
static const symbol s_4_1[2]
Definition: dutch_porter.cc:93
static const symbol s_4_4[4]
Definition: dutch_porter.cc:96
static const symbol s_4_5[3]
Definition: dutch_porter.cc:97
static const symbol s_4_2[3]
Definition: dutch_porter.cc:94
static const symbol s_4_0[3]
Definition: dutch_porter.cc:92

Definition at line 97 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ a_5

const struct among a_5[4]
static
Initial value:
= {
{ 2, s_5_0, 0, -1, 0},
{ 2, s_5_1, 0, -1, 0},
{ 2, s_5_2, 0, -1, 0},
{ 2, s_5_3, 0, -1, 0}
}
static const symbol s_5_3[2]
static const symbol s_5_0[2]
static const symbol s_5_2[2]
static const symbol s_5_1[2]

Definition at line 110 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ g_v

const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
static

◆ g_v_I

const unsigned char g_v_I[] = { 1, 0, 0, 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
static

Definition at line 120 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ g_v_j

const unsigned char g_v_j[] = { 17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
static

Definition at line 122 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ s_0

const symbol s_0[] = { 'a' }
static

Definition at line 22 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_0_1

const symbol s_0_1[2] = { 0xC3, 0xA1 }
static

Definition at line 38 of file dutch_porter.cc.

◆ s_0_10

const symbol s_0_10[2] = { 0xC3, 0xBC }
static

Definition at line 47 of file dutch_porter.cc.

◆ s_0_2

const symbol s_0_2[2] = { 0xC3, 0xA4 }
static

Definition at line 39 of file dutch_porter.cc.

◆ s_0_3

const symbol s_0_3[2] = { 0xC3, 0xA9 }
static

Definition at line 40 of file dutch_porter.cc.

◆ s_0_4

const symbol s_0_4[2] = { 0xC3, 0xAB }
static

Definition at line 41 of file dutch_porter.cc.

◆ s_0_5

const symbol s_0_5[2] = { 0xC3, 0xAD }
static

Definition at line 42 of file dutch_porter.cc.

◆ s_0_6

const symbol s_0_6[2] = { 0xC3, 0xAF }
static

Definition at line 43 of file dutch_porter.cc.

◆ s_0_7

const symbol s_0_7[2] = { 0xC3, 0xB3 }
static

Definition at line 44 of file dutch_porter.cc.

◆ s_0_8

const symbol s_0_8[2] = { 0xC3, 0xB6 }
static

Definition at line 45 of file dutch_porter.cc.

◆ s_0_9

const symbol s_0_9[2] = { 0xC3, 0xBA }
static

Definition at line 46 of file dutch_porter.cc.

◆ s_1

const symbol s_1[] = { 'e' }
static

Definition at line 23 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_10

const symbol s_10[] = { 'g', 'e', 'm' }
static

Definition at line 32 of file dutch_porter.cc.

Referenced by r_en_ending().

◆ s_11

const symbol s_11[] = { 'h', 'e', 'i', 'd' }
static

Definition at line 33 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ s_12

const symbol s_12[] = { 'h', 'e', 'i', 'd' }
static

Definition at line 34 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ s_13

const symbol s_13[] = { 'e', 'n' }
static

Definition at line 35 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ s_14

const symbol s_14[] = { 'i', 'g' }
static

Definition at line 36 of file dutch_porter.cc.

Referenced by r_standard_suffix().

◆ s_1_1

const symbol s_1_1[1] = { 'I' }
static

Definition at line 62 of file dutch_porter.cc.

◆ s_1_2

const symbol s_1_2[1] = { 'Y' }
static

Definition at line 63 of file dutch_porter.cc.

◆ s_2

const symbol s_2[] = { 'i' }
static

Definition at line 24 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_2_0

const symbol s_2_0[2] = { 'd', 'd' }
static

Definition at line 70 of file dutch_porter.cc.

◆ s_2_1

const symbol s_2_1[2] = { 'k', 'k' }
static

Definition at line 71 of file dutch_porter.cc.

◆ s_2_2

const symbol s_2_2[2] = { 't', 't' }
static

Definition at line 72 of file dutch_porter.cc.

◆ s_3

const symbol s_3[] = { 'o' }
static

Definition at line 25 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_3_0

const symbol s_3_0[3] = { 'e', 'n', 'e' }
static

Definition at line 79 of file dutch_porter.cc.

◆ s_3_1

const symbol s_3_1[2] = { 's', 'e' }
static

Definition at line 80 of file dutch_porter.cc.

◆ s_3_2

const symbol s_3_2[2] = { 'e', 'n' }
static

Definition at line 81 of file dutch_porter.cc.

◆ s_3_3

const symbol s_3_3[5] = { 'h', 'e', 'd', 'e', 'n' }
static

Definition at line 82 of file dutch_porter.cc.

◆ s_3_4

const symbol s_3_4[1] = { 's' }
static

Definition at line 83 of file dutch_porter.cc.

◆ s_4

const symbol s_4[] = { 'u' }
static

Definition at line 26 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_4_0

const symbol s_4_0[3] = { 'e', 'n', 'd' }
static

Definition at line 92 of file dutch_porter.cc.

◆ s_4_1

const symbol s_4_1[2] = { 'i', 'g' }
static

Definition at line 93 of file dutch_porter.cc.

◆ s_4_2

const symbol s_4_2[3] = { 'i', 'n', 'g' }
static

Definition at line 94 of file dutch_porter.cc.

◆ s_4_3

const symbol s_4_3[4] = { 'l', 'i', 'j', 'k' }
static

Definition at line 95 of file dutch_porter.cc.

◆ s_4_4

const symbol s_4_4[4] = { 'b', 'a', 'a', 'r' }
static

Definition at line 96 of file dutch_porter.cc.

◆ s_4_5

const symbol s_4_5[3] = { 'b', 'a', 'r' }
static

Definition at line 97 of file dutch_porter.cc.

◆ s_5

const symbol s_5[] = { 'Y' }
static

Definition at line 27 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_5_0

const symbol s_5_0[2] = { 'a', 'a' }
static

Definition at line 107 of file dutch_porter.cc.

◆ s_5_1

const symbol s_5_1[2] = { 'e', 'e' }
static

Definition at line 108 of file dutch_porter.cc.

◆ s_5_2

const symbol s_5_2[2] = { 'o', 'o' }
static

Definition at line 109 of file dutch_porter.cc.

◆ s_5_3

const symbol s_5_3[2] = { 'u', 'u' }
static

Definition at line 110 of file dutch_porter.cc.

◆ s_6

const symbol s_6[] = { 'I' }
static

Definition at line 28 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_7

const symbol s_7[] = { 'Y' }
static

Definition at line 29 of file dutch_porter.cc.

Referenced by r_prelude().

◆ s_8

const symbol s_8[] = { 'y' }
static

Definition at line 30 of file dutch_porter.cc.

Referenced by r_postlude().

◆ s_9

const symbol s_9[] = { 'i' }
static

Definition at line 31 of file dutch_porter.cc.

Referenced by r_postlude().