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

Go to the source code of this file.

Macros

#define s_0_0   0
 
#define s_0_1   2
 
#define s_0_2   5
 
#define s_0_3   9
 
#define s_0_4   12
 
#define s_0_5   15
 
#define s_0_6   19
 
#define s_0_7   25
 
#define s_0_8   27
 
#define s_0_9   30
 
#define s_1_0   33
 
#define s_1_1   36
 
#define s_1_2   38
 
#define s_1_3   (s_1_4 + 1)
 
#define s_1_4   41
 
#define s_1_5   44
 
#define s_2_0   47
 
#define s_2_1   51
 
#define s_2_2   54
 
#define s_2_3   (s_2_4 + 1)
 
#define s_2_4   58
 
#define s_2_5   62
 
#define s_3_0   66
 
#define s_3_1   69
 
#define s_4_0   72
 
#define s_4_1   75
 
#define s_4_2   78
 
#define s_4_3   81
 
#define s_4_4   83
 
#define s_4_5   85
 
#define s_4_6   87
 
#define s_4_7   89
 
#define s_4_8   92
 
#define s_5_0   96
 
#define s_5_1   98
 
#define s_5_2   100
 
#define s_5_3   102
 
#define s_5_4   104
 
#define s_5_5   106
 
#define s_5_6   110
 
#define s_6_0   (s_6_1 + 2)
 
#define s_6_1   114
 
#define s_6_2   117
 
#define s_6_3   119
 
#define s_6_4   (s_6_5 + 1)
 
#define s_6_5   122
 
#define s_6_6   125
 
#define s_6_7   128
 
#define s_6_8   131
 
#define s_6_9   134
 
#define s_6_10   137
 
#define s_6_11   s_6_2
 
#define s_6_12   140
 
#define s_6_13   143
 
#define s_6_14   146
 
#define s_6_15   150
 
#define s_6_16   153
 
#define s_6_17   157
 
#define s_6_18   160
 
#define s_6_19   164
 
#define s_6_20   167
 
#define s_6_21   171
 
#define s_6_22   (s_6_20 + 1)
 
#define s_6_23   175
 
#define s_6_24   179
 
#define s_6_25   182
 
#define s_6_26   (s_6_27 + 1)
 
#define s_6_27   186
 
#define s_6_28   190
 
#define s_6_29   194
 
#define s_7_0   198
 
#define s_7_1   (s_7_2 + 1)
 
#define s_7_2   201
 
#define s_7_3   (s_7_4 + 1)
 
#define s_7_4   205
 
#define s_7_5   (s_7_6 + 1)
 
#define s_7_6   209
 
#define s_7_7   (s_7_8 + 1)
 
#define s_7_8   213
 
#define s_7_9   217
 
#define s_7_10   (s_7_11 + 1)
 
#define s_7_11   221
 
#define s_7_12   (s_7_13 + 1)
 
#define s_7_13   226
 
#define s_8_0   231
 
#define s_8_1   232
 
#define s_9_0   (s_9_1 + 1)
 
#define s_9_1   233
 

Functions

static int tr_VI (Xapian::StemImplementation *this_ptr)
 
static int tr_LONG (Xapian::StemImplementation *this_ptr)
 

Variables

static const among_function af [2]
 
static const symbol s_pool []
 
static const struct among a_0 [10]
 
static const struct among a_1 [6]
 
static const struct among a_2 [6]
 
static const struct among a_3 [2]
 
static const struct among a_4 [9]
 
static const struct among a_5 [7]
 
static const struct among a_6 [30]
 
static const unsigned char af_6 [30]
 
static const struct among a_7 [14]
 
static const struct among a_8 [2]
 
static const struct among a_9 [2]
 
static const unsigned char g_AEI [] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 }
 
static const unsigned char g_V1 [] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 }
 
static const unsigned char g_V2 [] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 }
 
static const unsigned char g_particle_end [] = { 17, 97, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 }
 
static const symbol s_0 [] = { 'k', 's', 'e' }
 
static const symbol s_1 [] = { 'k', 's', 'i' }
 
static const symbol s_2 [] = { 0xC3, 0xA4 }
 
static const symbol s_3 [] = { 0xC3, 0xB6 }
 
static const symbol s_4 [] = { 'i', 'e' }
 
static const symbol s_5 [] = { 'p', 'o' }
 
static const symbol s_6 [] = { 'p', 'o' }
 

Macro Definition Documentation

◆ s_0_0

#define s_0_0   0

◆ s_0_1

#define s_0_1   2

◆ s_0_2

#define s_0_2   5

◆ s_0_3

#define s_0_3   9

◆ s_0_4

#define s_0_4   12

◆ s_0_5

#define s_0_5   15

◆ s_0_6

#define s_0_6   19

◆ s_0_7

#define s_0_7   25

◆ s_0_8

#define s_0_8   27

◆ s_0_9

#define s_0_9   30

◆ s_1_0

#define s_1_0   33

◆ s_1_1

#define s_1_1   36

◆ s_1_2

#define s_1_2   38

◆ s_1_3

#define s_1_3   (s_1_4 + 1)

◆ s_1_4

#define s_1_4   41

◆ s_1_5

#define s_1_5   44

◆ s_2_0

#define s_2_0   47

◆ s_2_1

#define s_2_1   51

◆ s_2_2

#define s_2_2   54

◆ s_2_3

#define s_2_3   (s_2_4 + 1)

◆ s_2_4

#define s_2_4   58

◆ s_2_5

#define s_2_5   62

◆ s_3_0

#define s_3_0   66

◆ s_3_1

#define s_3_1   69

◆ s_4_0

#define s_4_0   72

◆ s_4_1

#define s_4_1   75

◆ s_4_2

#define s_4_2   78

◆ s_4_3

#define s_4_3   81

◆ s_4_4

#define s_4_4   83

◆ s_4_5

#define s_4_5   85

◆ s_4_6

#define s_4_6   87

◆ s_4_7

#define s_4_7   89

◆ s_4_8

#define s_4_8   92

◆ s_5_0

#define s_5_0   96

◆ s_5_1

#define s_5_1   98

◆ s_5_2

#define s_5_2   100

◆ s_5_3

#define s_5_3   102

◆ s_5_4

#define s_5_4   104

◆ s_5_5

#define s_5_5   106

◆ s_5_6

#define s_5_6   110

◆ s_6_0

#define s_6_0   (s_6_1 + 2)

◆ s_6_1

#define s_6_1   114

◆ s_6_10

#define s_6_10   137

◆ s_6_11

#define s_6_11   s_6_2

◆ s_6_12

#define s_6_12   140

◆ s_6_13

#define s_6_13   143

◆ s_6_14

#define s_6_14   146

◆ s_6_15

#define s_6_15   150

◆ s_6_16

#define s_6_16   153

◆ s_6_17

#define s_6_17   157

◆ s_6_18

#define s_6_18   160

◆ s_6_19

#define s_6_19   164

◆ s_6_2

#define s_6_2   117

◆ s_6_20

#define s_6_20   167

◆ s_6_21

#define s_6_21   171

◆ s_6_22

#define s_6_22   (s_6_20 + 1)

◆ s_6_23

#define s_6_23   175

◆ s_6_24

#define s_6_24   179

◆ s_6_25

#define s_6_25   182

◆ s_6_26

#define s_6_26   (s_6_27 + 1)

◆ s_6_27

#define s_6_27   186

◆ s_6_28

#define s_6_28   190

◆ s_6_29

#define s_6_29   194

◆ s_6_3

#define s_6_3   119

◆ s_6_4

#define s_6_4   (s_6_5 + 1)

◆ s_6_5

#define s_6_5   122

◆ s_6_6

#define s_6_6   125

◆ s_6_7

#define s_6_7   128

◆ s_6_8

#define s_6_8   131

◆ s_6_9

#define s_6_9   134

◆ s_7_0

#define s_7_0   198

◆ s_7_1

#define s_7_1   (s_7_2 + 1)

◆ s_7_10

#define s_7_10   (s_7_11 + 1)

◆ s_7_11

#define s_7_11   221

◆ s_7_12

#define s_7_12   (s_7_13 + 1)

◆ s_7_13

#define s_7_13   226

◆ s_7_2

#define s_7_2   201

◆ s_7_3

#define s_7_3   (s_7_4 + 1)

◆ s_7_4

#define s_7_4   205

◆ s_7_5

#define s_7_5   (s_7_6 + 1)

◆ s_7_6

#define s_7_6   209

◆ s_7_7

#define s_7_7   (s_7_8 + 1)

◆ s_7_8

#define s_7_8   213

◆ s_7_9

#define s_7_9   217

◆ s_8_0

#define s_8_0   231

◆ s_8_1

#define s_8_1   232

◆ s_9_0

#define s_9_0   (s_9_1 + 1)

◆ s_9_1

#define s_9_1   233

Function Documentation

◆ tr_LONG()

static int tr_LONG ( Xapian::StemImplementation this_ptr)
static

Definition at line 12 of file finnish.cc.

◆ tr_VI()

static int tr_VI ( Xapian::StemImplementation this_ptr)
static

Definition at line 8 of file finnish.cc.

Variable Documentation

◆ a_0

const struct among a_0[10]
static
Initial value:
=
{
{ 2, s_0_0, -1, 1},
{ 3, s_0_1, -1, 2},
{ 4, s_0_2, -1, 1},
{ 3, s_0_3, -1, 1},
{ 3, s_0_4, -1, 1},
{ 4, s_0_5, -1, 1},
{ 6, s_0_6, -1, 1},
{ 2, s_0_7, -1, 1},
{ 3, s_0_8, -1, 1},
{ 3, s_0_9, -1, 1}
}
#define s_0_1
#define s_0_4
#define s_0_7
#define s_0_5
#define s_0_3
#define s_0_2
#define s_0_8
#define s_0_9
#define s_0_0
#define s_0_6

Definition at line 188 of file finnish.cc.

◆ a_1

const struct among a_1[6]
static
Initial value:
=
{
{ 3, s_1_0, -1, -1},
{ 2, s_1_1, -1, -1},
{ 3, s_1_2, -1, -1},
{ 2, s_1_3, -1, -1},
{ 3, s_1_4, 3, -1},
{ 3, s_1_5, 3, -1}
}
#define s_1_1
#define s_1_0
#define s_1_3
#define s_1_4
#define s_1_2
#define s_1_5

Definition at line 203 of file finnish.cc.

◆ a_2

const struct among a_2[6]
static
Initial value:
=
{
{ 4, s_2_0, -1, -1},
{ 3, s_2_1, -1, -1},
{ 4, s_2_2, -1, -1},
{ 3, s_2_3, -1, -1},
{ 4, s_2_4, 3, -1},
{ 4, s_2_5, 3, -1}
}
#define s_2_3
#define s_2_5
#define s_2_0
#define s_2_1
#define s_2_2
#define s_2_4

Definition at line 214 of file finnish.cc.

◆ a_3

const struct among a_3[2]
static
Initial value:
=
{
{ 3, s_3_0, -1, -1},
{ 3, s_3_1, -1, -1}
}
#define s_3_1
#define s_3_0

Definition at line 225 of file finnish.cc.

◆ a_4

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

Definition at line 232 of file finnish.cc.

◆ a_5

const struct among a_5[7]
static
Initial value:
=
{
{ 2, s_5_0, -1, -1},
{ 2, s_5_1, -1, -1},
{ 2, s_5_2, -1, -1},
{ 2, s_5_3, -1, -1},
{ 2, s_5_4, -1, -1},
{ 4, s_5_5, -1, -1},
{ 4, s_5_6, -1, -1}
}
#define s_5_2
#define s_5_0
#define s_5_3
#define s_5_6
#define s_5_4
#define s_5_5
#define s_5_1

Definition at line 246 of file finnish.cc.

◆ a_6

const struct among a_6[30]
static

Definition at line 258 of file finnish.cc.

◆ a_7

const struct among a_7[14]
static
Initial value:
=
{
{ 3, s_7_0, -1, -1},
{ 3, s_7_1, -1, 1},
{ 4, s_7_2, 1, -1},
{ 3, s_7_3, -1, 1},
{ 4, s_7_4, 3, -1},
{ 3, s_7_5, -1, 1},
{ 4, s_7_6, 5, -1},
{ 3, s_7_7, -1, 1},
{ 4, s_7_8, 7, -1},
{ 4, s_7_9, -1, -1},
{ 4, s_7_10, -1, 1},
{ 5, s_7_11, 10, -1},
{ 4, s_7_12, -1, 1},
{ 5, s_7_13, 12, -1}
}
#define s_7_4
#define s_7_0
#define s_7_11
#define s_7_12
#define s_7_9
#define s_7_7
#define s_7_10
#define s_7_1
#define s_7_8
#define s_7_13
#define s_7_2
#define s_7_5
#define s_7_6
#define s_7_3

Definition at line 327 of file finnish.cc.

◆ a_8

const struct among a_8[2]
static
Initial value:
=
{
{ 1, s_8_0, -1, -1},
{ 1, s_8_1, -1, -1}
}
#define s_8_0
#define s_8_1

Definition at line 346 of file finnish.cc.

◆ a_9

const struct among a_9[2]
static
Initial value:
=
{
{ 3, s_9_0, -1, 1},
{ 4, s_9_1, 0, -1}
}
#define s_9_1
#define s_9_0

Definition at line 353 of file finnish.cc.

◆ af

const among_function af[2]
static
Initial value:
=
{
}
static int tr_VI(Xapian::StemImplementation *this_ptr)
Definition: finnish.cc:8
static int tr_LONG(Xapian::StemImplementation *this_ptr)
Definition: finnish.cc:12

Definition at line 16 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_case_ending().

◆ af_6

const unsigned char af_6[30]
static

Definition at line 292 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_case_ending().

◆ g_AEI

const unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 }
static

Definition at line 359 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_tidy().

◆ g_particle_end

const unsigned char g_particle_end[] = { 17, 97, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 }
static

Definition at line 365 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_particle_etc().

◆ g_V1

const unsigned char g_V1[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 }
static

◆ g_V2

const unsigned char g_V2[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32 }
static

Definition at line 363 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_VI().

◆ s_0

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

Definition at line 367 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_possessive().

◆ s_1

const symbol s_1[] = { 'k', 's', 'i' }
static

Definition at line 368 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_possessive().

◆ s_2

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

Definition at line 369 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_case_ending().

◆ s_3

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

Definition at line 370 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_case_ending().

◆ s_4

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

Definition at line 371 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_case_ending().

◆ s_5

const symbol s_5[] = { 'p', 'o' }
static

Definition at line 372 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_other_endings().

◆ s_6

const symbol s_6[] = { 'p', 'o' }
static

Definition at line 373 of file finnish.cc.

Referenced by Xapian::InternalStemFinnish::r_t_plural().

◆ s_pool

const symbol s_pool[]
static