xapian-core  1.4.27
Macros | Variables
porter.cc File Reference
#include <config.h>
#include <limits.h>
#include "porter.h"
+ Include dependency graph for porter.cc:

Go to the source code of this file.

Macros

#define s_0_0   (s_0_1 + 2)
 
#define s_0_1   0
 
#define s_0_2   3
 
#define s_0_3   s_0_2
 
#define s_1_1   7
 
#define s_1_2   9
 
#define s_1_3   11
 
#define s_1_4   13
 
#define s_1_5   15
 
#define s_1_6   17
 
#define s_1_7   19
 
#define s_1_8   21
 
#define s_1_9   23
 
#define s_1_10   25
 
#define s_1_11   27
 
#define s_1_12   29
 
#define s_2_0   (s_2_1 + 1)
 
#define s_2_1   31
 
#define s_2_2   34
 
#define s_3_0   37
 
#define s_3_1   41
 
#define s_3_2   45
 
#define s_3_3   49
 
#define s_3_4   52
 
#define s_3_5   56
 
#define s_3_6   61
 
#define s_3_7   66
 
#define s_3_8   71
 
#define s_3_9   77
 
#define s_3_10   (s_3_11 + 1)
 
#define s_3_11   82
 
#define s_3_12   89
 
#define s_3_13   s_3_11
 
#define s_3_14   94
 
#define s_3_15   101
 
#define s_3_16   105
 
#define s_3_17   109
 
#define s_3_18   116
 
#define s_3_19   123
 
#define s_4_0   130
 
#define s_4_1   135
 
#define s_4_2   140
 
#define s_4_3   145
 
#define s_4_4   150
 
#define s_4_5   154
 
#define s_4_6   157
 
#define s_5_0   161
 
#define s_5_1   163
 
#define s_5_2   167
 
#define s_5_3   171
 
#define s_5_4   175
 
#define s_5_5   179
 
#define s_5_6   182
 
#define s_5_7   185
 
#define s_5_8   188
 
#define s_5_9   191
 
#define s_5_10   193
 
#define s_5_11   196
 
#define s_5_12   199
 
#define s_5_13   201
 
#define s_5_14   204
 
#define s_5_15   (s_5_16 + 1)
 
#define s_5_16   (s_5_17 + 1)
 
#define s_5_17   207
 
#define s_5_18   s_5_13
 

Variables

static const symbol s_pool []
 
static const struct among a_0 [4]
 
static const struct among a_1 [13]
 
static const struct among a_2 [3]
 
static const struct among a_3 [20]
 
static const struct among a_4 [7]
 
static const struct among a_5 [19]
 
static const unsigned char g_v [] = { 17, 65, 16, 1 }
 
static const unsigned char g_v_WXY [] = { 1, 17, 65, 208, 1 }
 
static const symbol s_0 [] = { 's', 's' }
 
static const symbol s_1 [] = { 'i' }
 
static const symbol s_2 [] = { 'e', 'e' }
 
static const symbol s_3 [] = { 'e' }
 
static const symbol s_4 [] = { 'e' }
 
static const symbol s_5 [] = { 'i' }
 
static const symbol s_6 [] = { 't', 'i', 'o', 'n' }
 
static const symbol s_7 [] = { 'e', 'n', 'c', 'e' }
 
static const symbol s_8 [] = { 'a', 'n', 'c', 'e' }
 
static const symbol s_9 [] = { 'a', 'b', 'l', 'e' }
 
static const symbol s_10 [] = { 'e', 'n', 't' }
 
static const symbol s_11 [] = { 'e' }
 
static const symbol s_12 [] = { 'i', 'z', 'e' }
 
static const symbol s_13 [] = { 'a', 't', 'e' }
 
static const symbol s_14 [] = { 'a', 'l' }
 
static const symbol s_15 [] = { 'f', 'u', 'l' }
 
static const symbol s_16 [] = { 'o', 'u', 's' }
 
static const symbol s_17 [] = { 'i', 'v', 'e' }
 
static const symbol s_18 [] = { 'b', 'l', 'e' }
 
static const symbol s_19 [] = { 'a', 'l' }
 
static const symbol s_20 [] = { 'i', 'c' }
 
static const symbol s_21 [] = { 'Y' }
 
static const symbol s_22 [] = { 'Y' }
 
static const symbol s_23 [] = { 'y' }
 

Macro Definition Documentation

◆ s_0_0

#define s_0_0   (s_0_1 + 2)

Definition at line 8 of file porter.cc.

◆ s_0_1

#define s_0_1   0

◆ s_0_2

#define s_0_2   3

◆ s_0_3

#define s_0_3   s_0_2

◆ s_1_1

#define s_1_1   7

◆ s_1_10

#define s_1_10   25

◆ s_1_11

#define s_1_11   27

◆ s_1_12

#define s_1_12   29

◆ s_1_2

#define s_1_2   9

◆ s_1_3

#define s_1_3   11

◆ s_1_4

#define s_1_4   13

◆ s_1_5

#define s_1_5   15

◆ s_1_6

#define s_1_6   17

◆ s_1_7

#define s_1_7   19

◆ s_1_8

#define s_1_8   21

◆ s_1_9

#define s_1_9   23

◆ s_2_0

#define s_2_0   (s_2_1 + 1)

◆ s_2_1

#define s_2_1   31

◆ s_2_2

#define s_2_2   34

◆ s_3_0

#define s_3_0   37

◆ s_3_1

#define s_3_1   41

◆ s_3_10

#define s_3_10   (s_3_11 + 1)

◆ s_3_11

#define s_3_11   82

◆ s_3_12

#define s_3_12   89

◆ s_3_13

#define s_3_13   s_3_11

◆ s_3_14

#define s_3_14   94

◆ s_3_15

#define s_3_15   101

◆ s_3_16

#define s_3_16   105

◆ s_3_17

#define s_3_17   109

◆ s_3_18

#define s_3_18   116

◆ s_3_19

#define s_3_19   123

◆ s_3_2

#define s_3_2   45

◆ s_3_3

#define s_3_3   49

◆ s_3_4

#define s_3_4   52

◆ s_3_5

#define s_3_5   56

◆ s_3_6

#define s_3_6   61

◆ s_3_7

#define s_3_7   66

◆ s_3_8

#define s_3_8   71

◆ s_3_9

#define s_3_9   77

◆ s_4_0

#define s_4_0   130

◆ s_4_1

#define s_4_1   135

◆ s_4_2

#define s_4_2   140

◆ s_4_3

#define s_4_3   145

◆ s_4_4

#define s_4_4   150

◆ s_4_5

#define s_4_5   154

◆ s_4_6

#define s_4_6   157

◆ s_5_0

#define s_5_0   161

◆ s_5_1

#define s_5_1   163

◆ s_5_10

#define s_5_10   193

◆ s_5_11

#define s_5_11   196

◆ s_5_12

#define s_5_12   199

◆ s_5_13

#define s_5_13   201

◆ s_5_14

#define s_5_14   204

◆ s_5_15

#define s_5_15   (s_5_16 + 1)

◆ s_5_16

#define s_5_16   (s_5_17 + 1)

◆ s_5_17

#define s_5_17   207

◆ s_5_18

#define s_5_18   s_5_13

◆ s_5_2

#define s_5_2   167

◆ s_5_3

#define s_5_3   171

◆ s_5_4

#define s_5_4   175

◆ s_5_5

#define s_5_5   179

◆ s_5_6

#define s_5_6   182

◆ s_5_7

#define s_5_7   185

◆ s_5_8

#define s_5_8   188

◆ s_5_9

#define s_5_9   191

Variable Documentation

◆ a_0

const struct among a_0[4]
static
Initial value:
=
{
{ 1, s_0_0, -1, 3},
{ 3, s_0_1, 0, 2},
{ 4, s_0_2, 0, 1},
{ 2, s_0_3, 0, -1}
}
#define s_0_2
#define s_0_1
#define s_0_0
Definition: porter.cc:8
#define s_0_3

Definition at line 134 of file porter.cc.

◆ a_1

const struct among a_1[13]
static
Initial value:
=
{
{ 0, 0, -1, 3},
{ 2, s_1_1, 0, 2},
{ 2, s_1_2, 0, 2},
{ 2, s_1_3, 0, 2},
{ 2, s_1_4, 0, 2},
{ 2, s_1_5, 0, 1},
{ 2, s_1_6, 0, 2},
{ 2, s_1_7, 0, 2},
{ 2, s_1_8, 0, 2},
{ 2, s_1_9, 0, 2},
{ 2, s_1_10, 0, 1},
{ 2, s_1_11, 0, 2},
{ 2, s_1_12, 0, 1}
}
#define s_1_4
#define s_1_3
#define s_1_10
#define s_1_11
#define s_1_1
#define s_1_7
#define s_1_5
#define s_1_8
#define s_1_9
#define s_1_12
#define s_1_2
#define s_1_6

Definition at line 143 of file porter.cc.

◆ a_2

const struct among a_2[3]
static
Initial value:
=
{
{ 2, s_2_0, -1, 2},
{ 3, s_2_1, 0, 1},
{ 3, s_2_2, -1, 2}
}
#define s_2_1
#define s_2_0
#define s_2_2

Definition at line 161 of file porter.cc.

◆ a_3

const struct among a_3[20]
static
Initial value:
=
{
{ 4, s_3_0, -1, 3},
{ 4, s_3_1, -1, 2},
{ 4, s_3_2, -1, 4},
{ 3, s_3_3, -1, 6},
{ 4, s_3_4, -1, 9},
{ 5, s_3_5, -1, 11},
{ 5, s_3_6, -1, 5},
{ 5, s_3_7, -1, 9},
{ 6, s_3_8, -1, 13},
{ 5, s_3_9, -1, 12},
{ 6, s_3_10, -1, 1},
{ 7, s_3_11, 10, 8},
{ 5, s_3_12, -1, 9},
{ 5, s_3_13, -1, 8},
{ 7, s_3_14, 13, 7},
{ 4, s_3_15, -1, 7},
{ 4, s_3_16, -1, 8},
{ 7, s_3_17, -1, 12},
{ 7, s_3_18, -1, 10},
{ 7, s_3_19, -1, 11}
}
#define s_3_1
#define s_3_0
#define s_3_15
#define s_3_6
#define s_3_10
#define s_3_5
#define s_3_3
#define s_3_17
#define s_3_2
#define s_3_4
#define s_3_8
#define s_3_13
#define s_3_7
#define s_3_12
#define s_3_16
#define s_3_19
#define s_3_18
#define s_3_9
#define s_3_11
#define s_3_14

Definition at line 169 of file porter.cc.

◆ a_4

const struct among a_4[7]
static
Initial value:
=
{
{ 5, s_4_0, -1, 2},
{ 5, s_4_1, -1, 3},
{ 5, s_4_2, -1, 1},
{ 5, s_4_3, -1, 2},
{ 4, s_4_4, -1, 2},
{ 3, s_4_5, -1, 3},
{ 4, s_4_6, -1, 3}
}
#define s_4_0
#define s_4_5
#define s_4_1
#define s_4_3
#define s_4_4
#define s_4_6
#define s_4_2

Definition at line 194 of file porter.cc.

◆ a_5

const struct among a_5[19]
static
Initial value:
=
{
{ 2, s_5_0, -1, 1},
{ 4, s_5_1, -1, 1},
{ 4, s_5_2, -1, 1},
{ 4, s_5_3, -1, 1},
{ 4, s_5_4, -1, 1},
{ 3, s_5_5, -1, 1},
{ 3, s_5_6, -1, 1},
{ 3, s_5_7, -1, 1},
{ 3, s_5_8, -1, 1},
{ 2, s_5_9, -1, 1},
{ 3, s_5_10, -1, 1},
{ 3, s_5_11, -1, 2},
{ 2, s_5_12, -1, 1},
{ 3, s_5_13, -1, 1},
{ 3, s_5_14, -1, 1},
{ 3, s_5_15, -1, 1},
{ 4, s_5_16, 15, 1},
{ 5, s_5_17, 16, 1},
{ 2, s_5_18, -1, 1}
}
#define s_5_1
#define s_5_6
#define s_5_16
#define s_5_18
#define s_5_3
#define s_5_7
#define s_5_10
#define s_5_0
#define s_5_11
#define s_5_2
#define s_5_13
#define s_5_9
#define s_5_4
#define s_5_15
#define s_5_8
#define s_5_5
#define s_5_17
#define s_5_12
#define s_5_14

Definition at line 206 of file porter.cc.

◆ g_v

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

◆ g_v_WXY

const unsigned char g_v_WXY[] = { 1, 17, 65, 208, 1 }
static

Definition at line 231 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_shortv().

◆ s_0

const symbol s_0[] = { 's', 's' }
static

Definition at line 233 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_1a().

◆ s_1

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

Definition at line 234 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_1a().

◆ s_10

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

Definition at line 243 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_11

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

Definition at line 244 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_12

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

Definition at line 245 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_13

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

Definition at line 246 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_14

const symbol s_14[] = { 'a', 'l' }
static

Definition at line 247 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_15

const symbol s_15[] = { 'f', 'u', 'l' }
static

Definition at line 248 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_16

const symbol s_16[] = { 'o', 'u', 's' }
static

Definition at line 249 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_17

const symbol s_17[] = { 'i', 'v', 'e' }
static

Definition at line 250 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_18

const symbol s_18[] = { 'b', 'l', 'e' }
static

Definition at line 251 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_19

const symbol s_19[] = { 'a', 'l' }
static

Definition at line 252 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_3().

◆ s_2

const symbol s_2[] = { 'e', 'e' }
static

Definition at line 235 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_1b().

◆ s_20

const symbol s_20[] = { 'i', 'c' }
static

Definition at line 253 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_3().

◆ s_21

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

Definition at line 254 of file porter.cc.

Referenced by Xapian::InternalStemPorter::stem().

◆ s_22

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

Definition at line 255 of file porter.cc.

Referenced by Xapian::InternalStemPorter::stem().

◆ s_23

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

Definition at line 256 of file porter.cc.

Referenced by Xapian::InternalStemPorter::stem().

◆ s_3

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

Definition at line 236 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_1b().

◆ s_4

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

Definition at line 237 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_1b().

◆ s_5

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

Definition at line 238 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_1c().

◆ s_6

const symbol s_6[] = { 't', 'i', 'o', 'n' }
static

Definition at line 239 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_7

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

Definition at line 240 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_8

const symbol s_8[] = { 'a', 'n', 'c', 'e' }
static

Definition at line 241 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_9

const symbol s_9[] = { 'a', 'b', 'l', 'e' }
static

Definition at line 242 of file porter.cc.

Referenced by Xapian::InternalStemPorter::r_Step_2().

◆ s_pool

const symbol s_pool[]
static