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

Go to the source code of this file.

Macros

#define SNOWBALL_RUNTIME_THROW_EXCEPTIONS
 

Typedefs

typedef Xapian::Internal::Snowball::Swedish::SN_local SN_local
 

Functions

static int r_other_suffix (struct SN_env *z)
 
static int r_consonant_pair (struct SN_env *z)
 
static int r_main_suffix (struct SN_env *z)
 
static int r_mark_regions (struct SN_env *z)
 
static int r_et_condition (struct SN_env *z)
 

Variables

static const symbol s_0 [] = { 'e', 't' }
 
static const symbol s_1 [] = { 0xC3, 0xB6, 's' }
 
static const symbol s_2 [] = { 'f', 'u', 'l', 'l' }
 
static const symbol s_0_0 [3] = { 'f', 'a', 'b' }
 
static const symbol s_0_1 [1] = { 'h' }
 
static const symbol s_0_2 [3] = { 'p', 'a', 'k' }
 
static const symbol s_0_3 [3] = { 'r', 'a', 'k' }
 
static const symbol s_0_4 [4] = { 's', 't', 'a', 'k' }
 
static const symbol s_0_5 [3] = { 'k', 'o', 'm' }
 
static const symbol s_0_6 [3] = { 'i', 'e', 't' }
 
static const symbol s_0_7 [3] = { 'c', 'i', 't' }
 
static const symbol s_0_8 [3] = { 'd', 'i', 't' }
 
static const symbol s_0_9 [4] = { 'a', 'l', 'i', 't' }
 
static const symbol s_0_10 [4] = { 'i', 'l', 'i', 't' }
 
static const symbol s_0_11 [3] = { 'm', 'i', 't' }
 
static const symbol s_0_12 [3] = { 'n', 'i', 't' }
 
static const symbol s_0_13 [3] = { 'p', 'i', 't' }
 
static const symbol s_0_14 [3] = { 'r', 'i', 't' }
 
static const symbol s_0_15 [3] = { 's', 'i', 't' }
 
static const symbol s_0_16 [3] = { 't', 'i', 't' }
 
static const symbol s_0_17 [3] = { 'u', 'i', 't' }
 
static const symbol s_0_18 [4] = { 'i', 'v', 'i', 't' }
 
static const symbol s_0_19 [4] = { 'k', 'v', 'i', 't' }
 
static const symbol s_0_20 [3] = { 'x', 'i', 't' }
 
static const struct among a_0 [21]
 
static const symbol s_1_0 [1] = { 'a' }
 
static const symbol s_1_1 [4] = { 'a', 'r', 'n', 'a' }
 
static const symbol s_1_2 [4] = { 'e', 'r', 'n', 'a' }
 
static const symbol s_1_3 [7] = { 'h', 'e', 't', 'e', 'r', 'n', 'a' }
 
static const symbol s_1_4 [4] = { 'o', 'r', 'n', 'a' }
 
static const symbol s_1_5 [2] = { 'a', 'd' }
 
static const symbol s_1_6 [1] = { 'e' }
 
static const symbol s_1_7 [3] = { 'a', 'd', 'e' }
 
static const symbol s_1_8 [4] = { 'a', 'n', 'd', 'e' }
 
static const symbol s_1_9 [4] = { 'a', 'r', 'n', 'e' }
 
static const symbol s_1_10 [3] = { 'a', 'r', 'e' }
 
static const symbol s_1_11 [4] = { 'a', 's', 't', 'e' }
 
static const symbol s_1_12 [2] = { 'e', 'n' }
 
static const symbol s_1_13 [5] = { 'a', 'n', 'd', 'e', 'n' }
 
static const symbol s_1_14 [4] = { 'a', 'r', 'e', 'n' }
 
static const symbol s_1_15 [5] = { 'h', 'e', 't', 'e', 'n' }
 
static const symbol s_1_16 [3] = { 'e', 'r', 'n' }
 
static const symbol s_1_17 [2] = { 'a', 'r' }
 
static const symbol s_1_18 [2] = { 'e', 'r' }
 
static const symbol s_1_19 [5] = { 'h', 'e', 't', 'e', 'r' }
 
static const symbol s_1_20 [2] = { 'o', 'r' }
 
static const symbol s_1_21 [1] = { 's' }
 
static const symbol s_1_22 [2] = { 'a', 's' }
 
static const symbol s_1_23 [5] = { 'a', 'r', 'n', 'a', 's' }
 
static const symbol s_1_24 [5] = { 'e', 'r', 'n', 'a', 's' }
 
static const symbol s_1_25 [5] = { 'o', 'r', 'n', 'a', 's' }
 
static const symbol s_1_26 [2] = { 'e', 's' }
 
static const symbol s_1_27 [4] = { 'a', 'd', 'e', 's' }
 
static const symbol s_1_28 [5] = { 'a', 'n', 'd', 'e', 's' }
 
static const symbol s_1_29 [3] = { 'e', 'n', 's' }
 
static const symbol s_1_30 [5] = { 'a', 'r', 'e', 'n', 's' }
 
static const symbol s_1_31 [6] = { 'h', 'e', 't', 'e', 'n', 's' }
 
static const symbol s_1_32 [4] = { 'e', 'r', 'n', 's' }
 
static const symbol s_1_33 [2] = { 'a', 't' }
 
static const symbol s_1_34 [2] = { 'e', 't' }
 
static const symbol s_1_35 [5] = { 'a', 'n', 'd', 'e', 't' }
 
static const symbol s_1_36 [3] = { 'h', 'e', 't' }
 
static const symbol s_1_37 [3] = { 'a', 's', 't' }
 
static const struct among a_1 [38]
 
static const symbol s_2_0 [2] = { 'd', 'd' }
 
static const symbol s_2_1 [2] = { 'g', 'd' }
 
static const symbol s_2_2 [2] = { 'n', 'n' }
 
static const symbol s_2_3 [2] = { 'd', 't' }
 
static const symbol s_2_4 [2] = { 'g', 't' }
 
static const symbol s_2_5 [2] = { 'k', 't' }
 
static const symbol s_2_6 [2] = { 't', 't' }
 
static const struct among a_2 [7]
 
static const symbol s_3_0 [2] = { 'i', 'g' }
 
static const symbol s_3_1 [3] = { 'l', 'i', 'g' }
 
static const symbol s_3_2 [3] = { 'e', 'l', 's' }
 
static const symbol s_3_3 [5] = { 'f', 'u', 'l', 'l', 't' }
 
static const symbol s_3_4 [4] = { 0xC3, 0xB6, 's', 't' }
 
static const struct among a_3 [5]
 
static const unsigned char g_v [] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 32 }
 
static const unsigned char g_s_ending [] = { 119, 127, 149 }
 
static const unsigned char g_ost_ending [] = { 173, 58 }
 

Macro Definition Documentation

◆ SNOWBALL_RUNTIME_THROW_EXCEPTIONS

#define SNOWBALL_RUNTIME_THROW_EXCEPTIONS

Definition at line 5 of file swedish.cc.

Typedef Documentation

◆ SN_local

Definition at line 10 of file swedish.cc.

Function Documentation

◆ r_consonant_pair()

static int r_consonant_pair ( struct SN_env z)
static

Definition at line 274 of file swedish.cc.

References a_2, SN_env::c, find_among_b(), skip_b_utf8(), and slice_del().

Referenced by Xapian::Internal::Snowball::Swedish::stem().

◆ r_et_condition()

static int r_et_condition ( struct SN_env z)
static

Definition at line 212 of file swedish.cc.

References a_0, SN_env::c, find_among_b(), g_v, in_grouping_b_U(), SN_env::l, SN_env::lb, out_grouping_b_U(), and SN_env::p.

Referenced by r_main_suffix().

◆ r_main_suffix()

static int r_main_suffix ( struct SN_env z)
static

◆ r_mark_regions()

static int r_mark_regions ( struct SN_env z)
static

◆ r_other_suffix()

static int r_other_suffix ( struct SN_env z)
static

Variable Documentation

◆ a_0

const struct among a_0[21]
static
Initial value:
= {
{ 3, s_0_0, 0, -1, 0},
{ 1, s_0_1, 0, -1, 0},
{ 3, s_0_2, 0, -1, 0},
{ 3, s_0_3, 0, -1, 0},
{ 4, s_0_4, 0, -1, 0},
{ 3, s_0_5, 0, -1, 0},
{ 3, s_0_6, 0, -1, 0},
{ 3, s_0_7, 0, -1, 0},
{ 3, s_0_8, 0, -1, 0},
{ 4, s_0_9, 0, -1, 0},
{ 4, s_0_10, 0, -1, 0},
{ 3, s_0_11, 0, -1, 0},
{ 3, s_0_12, 0, -1, 0},
{ 3, s_0_13, 0, -1, 0},
{ 3, s_0_14, 0, -1, 0},
{ 3, s_0_15, 0, -1, 0},
{ 3, s_0_16, 0, -1, 0},
{ 3, s_0_17, 0, -1, 0},
{ 4, s_0_18, 0, -1, 0},
{ 4, s_0_19, 0, -1, 0},
{ 3, s_0_20, 0, -1, 0}
}
static const symbol s_0_2[3]
Definition: swedish.cc:24
static const symbol s_0_11[3]
Definition: swedish.cc:33
static const symbol s_0_5[3]
Definition: swedish.cc:27
static const symbol s_0_3[3]
Definition: swedish.cc:25
static const symbol s_0_17[3]
Definition: swedish.cc:39
static const symbol s_0_12[3]
Definition: swedish.cc:34
static const symbol s_0_13[3]
Definition: swedish.cc:35
static const symbol s_0_10[4]
Definition: swedish.cc:32
static const symbol s_0_8[3]
Definition: swedish.cc:30
static const symbol s_0_0[3]
Definition: swedish.cc:22
static const symbol s_0_16[3]
Definition: swedish.cc:38
static const symbol s_0_9[4]
Definition: swedish.cc:31
static const symbol s_0_18[4]
Definition: swedish.cc:40
static const symbol s_0_20[3]
Definition: swedish.cc:42
static const symbol s_0_4[4]
Definition: swedish.cc:26
static const symbol s_0_14[3]
Definition: swedish.cc:36
static const symbol s_0_15[3]
Definition: swedish.cc:37
static const symbol s_0_1[1]
Definition: swedish.cc:23
static const symbol s_0_6[3]
Definition: swedish.cc:28
static const symbol s_0_7[3]
Definition: swedish.cc:29
static const symbol s_0_19[4]
Definition: swedish.cc:41

Definition at line 42 of file swedish.cc.

Referenced by r_et_condition().

◆ a_1

const struct among a_1[38]
static

Definition at line 104 of file swedish.cc.

Referenced by r_main_suffix().

◆ a_2

const struct among a_2[7]
static
Initial value:
= {
{ 2, s_2_0, 0, -1, 0},
{ 2, s_2_1, 0, -1, 0},
{ 2, s_2_2, 0, -1, 0},
{ 2, s_2_3, 0, -1, 0},
{ 2, s_2_4, 0, -1, 0},
{ 2, s_2_5, 0, -1, 0},
{ 2, s_2_6, 0, -1, 0}
}
static const symbol s_2_2[2]
Definition: swedish.cc:148
static const symbol s_2_5[2]
Definition: swedish.cc:151
static const symbol s_2_0[2]
Definition: swedish.cc:146
static const symbol s_2_3[2]
Definition: swedish.cc:149
static const symbol s_2_4[2]
Definition: swedish.cc:150
static const symbol s_2_6[2]
Definition: swedish.cc:152
static const symbol s_2_1[2]
Definition: swedish.cc:147

Definition at line 152 of file swedish.cc.

Referenced by r_consonant_pair().

◆ a_3

const struct among a_3[5]
static
Initial value:
= {
{ 2, s_3_0, 0, 1, 0},
{ 3, s_3_1, -1, 1, 0},
{ 3, s_3_2, 0, 1, 0},
{ 5, s_3_3, 0, 3, 0},
{ 4, s_3_4, 0, 2, 0}
}
static const symbol s_3_2[3]
Definition: swedish.cc:165
static const symbol s_3_0[2]
Definition: swedish.cc:163
static const symbol s_3_4[4]
Definition: swedish.cc:167
static const symbol s_3_1[3]
Definition: swedish.cc:164
static const symbol s_3_3[5]
Definition: swedish.cc:166

Definition at line 167 of file swedish.cc.

Referenced by r_other_suffix().

◆ g_ost_ending

const unsigned char g_ost_ending[] = { 173, 58 }
static

Definition at line 180 of file swedish.cc.

Referenced by r_other_suffix().

◆ g_s_ending

const unsigned char g_s_ending[] = { 119, 127, 149 }
static

Definition at line 178 of file swedish.cc.

Referenced by r_main_suffix().

◆ g_v

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

Definition at line 176 of file swedish.cc.

Referenced by r_et_condition(), and r_mark_regions().

◆ s_0

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

Definition at line 18 of file swedish.cc.

Referenced by r_main_suffix().

◆ s_0_0

const symbol s_0_0[3] = { 'f', 'a', 'b' }
static

Definition at line 22 of file swedish.cc.

◆ s_0_1

const symbol s_0_1[1] = { 'h' }
static

Definition at line 23 of file swedish.cc.

◆ s_0_10

const symbol s_0_10[4] = { 'i', 'l', 'i', 't' }
static

Definition at line 32 of file swedish.cc.

◆ s_0_11

const symbol s_0_11[3] = { 'm', 'i', 't' }
static

Definition at line 33 of file swedish.cc.

◆ s_0_12

const symbol s_0_12[3] = { 'n', 'i', 't' }
static

Definition at line 34 of file swedish.cc.

◆ s_0_13

const symbol s_0_13[3] = { 'p', 'i', 't' }
static

Definition at line 35 of file swedish.cc.

◆ s_0_14

const symbol s_0_14[3] = { 'r', 'i', 't' }
static

Definition at line 36 of file swedish.cc.

◆ s_0_15

const symbol s_0_15[3] = { 's', 'i', 't' }
static

Definition at line 37 of file swedish.cc.

◆ s_0_16

const symbol s_0_16[3] = { 't', 'i', 't' }
static

Definition at line 38 of file swedish.cc.

◆ s_0_17

const symbol s_0_17[3] = { 'u', 'i', 't' }
static

Definition at line 39 of file swedish.cc.

◆ s_0_18

const symbol s_0_18[4] = { 'i', 'v', 'i', 't' }
static

Definition at line 40 of file swedish.cc.

◆ s_0_19

const symbol s_0_19[4] = { 'k', 'v', 'i', 't' }
static

Definition at line 41 of file swedish.cc.

◆ s_0_2

const symbol s_0_2[3] = { 'p', 'a', 'k' }
static

Definition at line 24 of file swedish.cc.

◆ s_0_20

const symbol s_0_20[3] = { 'x', 'i', 't' }
static

Definition at line 42 of file swedish.cc.

◆ s_0_3

const symbol s_0_3[3] = { 'r', 'a', 'k' }
static

Definition at line 25 of file swedish.cc.

◆ s_0_4

const symbol s_0_4[4] = { 's', 't', 'a', 'k' }
static

Definition at line 26 of file swedish.cc.

◆ s_0_5

const symbol s_0_5[3] = { 'k', 'o', 'm' }
static

Definition at line 27 of file swedish.cc.

◆ s_0_6

const symbol s_0_6[3] = { 'i', 'e', 't' }
static

Definition at line 28 of file swedish.cc.

◆ s_0_7

const symbol s_0_7[3] = { 'c', 'i', 't' }
static

Definition at line 29 of file swedish.cc.

◆ s_0_8

const symbol s_0_8[3] = { 'd', 'i', 't' }
static

Definition at line 30 of file swedish.cc.

◆ s_0_9

const symbol s_0_9[4] = { 'a', 'l', 'i', 't' }
static

Definition at line 31 of file swedish.cc.

◆ s_1

const symbol s_1[] = { 0xC3, 0xB6, 's' }
static

Definition at line 19 of file swedish.cc.

Referenced by r_other_suffix().

◆ s_1_0

const symbol s_1_0[1] = { 'a' }
static

Definition at line 67 of file swedish.cc.

◆ s_1_1

const symbol s_1_1[4] = { 'a', 'r', 'n', 'a' }
static

Definition at line 68 of file swedish.cc.

◆ s_1_10

const symbol s_1_10[3] = { 'a', 'r', 'e' }
static

Definition at line 77 of file swedish.cc.

◆ s_1_11

const symbol s_1_11[4] = { 'a', 's', 't', 'e' }
static

Definition at line 78 of file swedish.cc.

◆ s_1_12

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

Definition at line 79 of file swedish.cc.

◆ s_1_13

const symbol s_1_13[5] = { 'a', 'n', 'd', 'e', 'n' }
static

Definition at line 80 of file swedish.cc.

◆ s_1_14

const symbol s_1_14[4] = { 'a', 'r', 'e', 'n' }
static

Definition at line 81 of file swedish.cc.

◆ s_1_15

const symbol s_1_15[5] = { 'h', 'e', 't', 'e', 'n' }
static

Definition at line 82 of file swedish.cc.

◆ s_1_16

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

Definition at line 83 of file swedish.cc.

◆ s_1_17

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

Definition at line 84 of file swedish.cc.

◆ s_1_18

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

Definition at line 85 of file swedish.cc.

◆ s_1_19

const symbol s_1_19[5] = { 'h', 'e', 't', 'e', 'r' }
static

Definition at line 86 of file swedish.cc.

◆ s_1_2

const symbol s_1_2[4] = { 'e', 'r', 'n', 'a' }
static

Definition at line 69 of file swedish.cc.

◆ s_1_20

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

Definition at line 87 of file swedish.cc.

◆ s_1_21

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

Definition at line 88 of file swedish.cc.

◆ s_1_22

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

Definition at line 89 of file swedish.cc.

◆ s_1_23

const symbol s_1_23[5] = { 'a', 'r', 'n', 'a', 's' }
static

Definition at line 90 of file swedish.cc.

◆ s_1_24

const symbol s_1_24[5] = { 'e', 'r', 'n', 'a', 's' }
static

Definition at line 91 of file swedish.cc.

◆ s_1_25

const symbol s_1_25[5] = { 'o', 'r', 'n', 'a', 's' }
static

Definition at line 92 of file swedish.cc.

◆ s_1_26

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

Definition at line 93 of file swedish.cc.

◆ s_1_27

const symbol s_1_27[4] = { 'a', 'd', 'e', 's' }
static

Definition at line 94 of file swedish.cc.

◆ s_1_28

const symbol s_1_28[5] = { 'a', 'n', 'd', 'e', 's' }
static

Definition at line 95 of file swedish.cc.

◆ s_1_29

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

Definition at line 96 of file swedish.cc.

◆ s_1_3

const symbol s_1_3[7] = { 'h', 'e', 't', 'e', 'r', 'n', 'a' }
static

Definition at line 70 of file swedish.cc.

◆ s_1_30

const symbol s_1_30[5] = { 'a', 'r', 'e', 'n', 's' }
static

Definition at line 97 of file swedish.cc.

◆ s_1_31

const symbol s_1_31[6] = { 'h', 'e', 't', 'e', 'n', 's' }
static

Definition at line 98 of file swedish.cc.

◆ s_1_32

const symbol s_1_32[4] = { 'e', 'r', 'n', 's' }
static

Definition at line 99 of file swedish.cc.

◆ s_1_33

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

Definition at line 100 of file swedish.cc.

◆ s_1_34

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

Definition at line 101 of file swedish.cc.

◆ s_1_35

const symbol s_1_35[5] = { 'a', 'n', 'd', 'e', 't' }
static

Definition at line 102 of file swedish.cc.

◆ s_1_36

const symbol s_1_36[3] = { 'h', 'e', 't' }
static

Definition at line 103 of file swedish.cc.

◆ s_1_37

const symbol s_1_37[3] = { 'a', 's', 't' }
static

Definition at line 104 of file swedish.cc.

◆ s_1_4

const symbol s_1_4[4] = { 'o', 'r', 'n', 'a' }
static

Definition at line 71 of file swedish.cc.

◆ s_1_5

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

Definition at line 72 of file swedish.cc.

◆ s_1_6

const symbol s_1_6[1] = { 'e' }
static

Definition at line 73 of file swedish.cc.

◆ s_1_7

const symbol s_1_7[3] = { 'a', 'd', 'e' }
static

Definition at line 74 of file swedish.cc.

◆ s_1_8

const symbol s_1_8[4] = { 'a', 'n', 'd', 'e' }
static

Definition at line 75 of file swedish.cc.

◆ s_1_9

const symbol s_1_9[4] = { 'a', 'r', 'n', 'e' }
static

Definition at line 76 of file swedish.cc.

◆ s_2

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

Definition at line 20 of file swedish.cc.

Referenced by r_other_suffix().

◆ s_2_0

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

Definition at line 146 of file swedish.cc.

◆ s_2_1

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

Definition at line 147 of file swedish.cc.

◆ s_2_2

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

Definition at line 148 of file swedish.cc.

◆ s_2_3

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

Definition at line 149 of file swedish.cc.

◆ s_2_4

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

Definition at line 150 of file swedish.cc.

◆ s_2_5

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

Definition at line 151 of file swedish.cc.

◆ s_2_6

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

Definition at line 152 of file swedish.cc.

◆ s_3_0

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

Definition at line 163 of file swedish.cc.

◆ s_3_1

const symbol s_3_1[3] = { 'l', 'i', 'g' }
static

Definition at line 164 of file swedish.cc.

◆ s_3_2

const symbol s_3_2[3] = { 'e', 'l', 's' }
static

Definition at line 165 of file swedish.cc.

◆ s_3_3

const symbol s_3_3[5] = { 'f', 'u', 'l', 'l', 't' }
static

Definition at line 166 of file swedish.cc.

◆ s_3_4

const symbol s_3_4[4] = { 0xC3, 0xB6, 's', 't' }
static

Definition at line 167 of file swedish.cc.