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

Go to the source code of this file.

Macros

#define s_0_0   0
 
#define s_0_1   3
 
#define s_0_2   6
 
#define s_1_0   9
 
#define s_1_1   12
 
#define s_1_2   14
 
#define s_2_0   16
 
#define s_2_1   (s_2_2 + 1)
 
#define s_2_2   17
 
#define s_3_0   20
 
#define s_3_1   22
 
#define s_3_2   s_3_3
 
#define s_3_3   24
 
#define s_3_4   s_3_5
 
#define s_3_5   27
 
#define s_3_6   31
 
#define s_3_7   35
 
#define s_3_8   s_3_9
 
#define s_3_9   38
 
#define s_3_10   42
 
#define s_3_11   46
 
#define s_4_0   s_4_1
 
#define s_4_1   49
 
#define s_4_2   56
 
#define s_4_3   s_4_4
 
#define s_4_4   59
 
#define s_4_5   66
 

Functions

static int tr_VOWEL (Xapian::StemImplementation *this_ptr)
 
static int tr_SUFFIX_I_OK (Xapian::StemImplementation *this_ptr)
 
static int tr_SUFFIX_AN_OK (Xapian::StemImplementation *this_ptr)
 
static int tr_SUFFIX_KAN_OK (Xapian::StemImplementation *this_ptr)
 
static int tr_KER (Xapian::StemImplementation *this_ptr)
 

Variables

static const among_function af [5]
 
static const symbol s_pool []
 
static const struct among a_0 [3]
 
static const struct among a_1 [3]
 
static const struct among a_2 [3]
 
static const unsigned char af_2 [3]
 
static const struct among a_3 [12]
 
static const unsigned char af_3 [12]
 
static const struct among a_4 [6]
 
static const unsigned char af_4 [6]
 
static const unsigned char g_vowel [] = { 17, 65, 16 }
 
static const symbol s_0 [] = { 'e', 'r' }
 
static const symbol s_1 [] = { 's' }
 
static const symbol s_2 [] = { 's' }
 
static const symbol s_3 [] = { 'p' }
 
static const symbol s_4 [] = { 'p' }
 
static const symbol s_5 [] = { 'a', 'j', 'a', 'r' }
 
static const symbol s_6 [] = { 'a', 'j', 'a', 'r' }
 

Macro Definition Documentation

◆ s_0_0

#define s_0_0   0

◆ s_0_1

#define s_0_1   3

◆ s_0_2

#define s_0_2   6

◆ s_1_0

#define s_1_0   9

◆ s_1_1

#define s_1_1   12

◆ s_1_2

#define s_1_2   14

◆ s_2_0

#define s_2_0   16

◆ s_2_1

#define s_2_1   (s_2_2 + 1)

◆ s_2_2

#define s_2_2   17

◆ s_3_0

#define s_3_0   20

◆ s_3_1

#define s_3_1   22

◆ s_3_10

#define s_3_10   42

◆ s_3_11

#define s_3_11   46

◆ s_3_2

#define s_3_2   s_3_3

◆ s_3_3

#define s_3_3   24

◆ s_3_4

#define s_3_4   s_3_5

◆ s_3_5

#define s_3_5   27

◆ s_3_6

#define s_3_6   31

◆ s_3_7

#define s_3_7   35

◆ s_3_8

#define s_3_8   s_3_9

◆ s_3_9

#define s_3_9   38

◆ s_4_0

#define s_4_0   s_4_1

◆ s_4_1

#define s_4_1   49

◆ s_4_2

#define s_4_2   56

◆ s_4_3

#define s_4_3   s_4_4

◆ s_4_4

#define s_4_4   59

◆ s_4_5

#define s_4_5   66

Function Documentation

◆ tr_KER()

static int tr_KER ( Xapian::StemImplementation this_ptr)
static

Definition at line 24 of file indonesian.cc.

◆ tr_SUFFIX_AN_OK()

static int tr_SUFFIX_AN_OK ( Xapian::StemImplementation this_ptr)
static

Definition at line 16 of file indonesian.cc.

◆ tr_SUFFIX_I_OK()

static int tr_SUFFIX_I_OK ( Xapian::StemImplementation this_ptr)
static

Definition at line 12 of file indonesian.cc.

◆ tr_SUFFIX_KAN_OK()

static int tr_SUFFIX_KAN_OK ( Xapian::StemImplementation this_ptr)
static

Definition at line 20 of file indonesian.cc.

◆ tr_VOWEL()

static int tr_VOWEL ( Xapian::StemImplementation this_ptr)
static

Definition at line 8 of file indonesian.cc.

Variable Documentation

◆ a_0

const struct among a_0[3]
static
Initial value:
=
{
{ 3, s_0_0, -1, 1},
{ 3, s_0_1, -1, 1},
{ 3, s_0_2, -1, 1}
}
#define s_0_0
#define s_0_2
#define s_0_1

Definition at line 89 of file indonesian.cc.

◆ a_1

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

Definition at line 97 of file indonesian.cc.

◆ a_2

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

Definition at line 105 of file indonesian.cc.

◆ a_3

const struct among a_3[12]
static
Initial value:
=
{
{ 2, s_3_0, -1, 1},
{ 2, s_3_1, -1, 2},
{ 2, s_3_2, -1, 1},
{ 3, s_3_3, 2, 5},
{ 3, s_3_4, 2, 1},
{ 4, s_3_5, 4, 1},
{ 4, s_3_6, 4, 3},
{ 3, s_3_7, -1, 6},
{ 3, s_3_8, -1, 2},
{ 4, s_3_9, 8, 2},
{ 4, s_3_10, 8, 4},
{ 3, s_3_11, -1, 1}
}
#define s_3_3
#define s_3_1
#define s_3_2
#define s_3_7
#define s_3_6
#define s_3_10
#define s_3_11
#define s_3_0
#define s_3_9
#define s_3_5
#define s_3_4
#define s_3_8

Definition at line 120 of file indonesian.cc.

◆ a_4

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

Definition at line 153 of file indonesian.cc.

◆ af

const among_function af[5]
static
Initial value:
=
{
}
static int tr_SUFFIX_AN_OK(Xapian::StemImplementation *this_ptr)
Definition: indonesian.cc:16
static int tr_KER(Xapian::StemImplementation *this_ptr)
Definition: indonesian.cc:24
static int tr_VOWEL(Xapian::StemImplementation *this_ptr)
Definition: indonesian.cc:8
static int tr_SUFFIX_I_OK(Xapian::StemImplementation *this_ptr)
Definition: indonesian.cc:12
static int tr_SUFFIX_KAN_OK(Xapian::StemImplementation *this_ptr)
Definition: indonesian.cc:20

Definition at line 28 of file indonesian.cc.

Referenced by Xapian::InternalStemIndonesian::r_remove_first_order_prefix(), Xapian::InternalStemIndonesian::r_remove_second_order_prefix(), and Xapian::InternalStemIndonesian::r_remove_suffix().

◆ af_2

const unsigned char af_2[3]
static
Initial value:
=
{
2 ,
3 ,
4
}

Definition at line 112 of file indonesian.cc.

Referenced by Xapian::InternalStemIndonesian::r_remove_suffix().

◆ af_3

const unsigned char af_3[12]
static
Initial value:
=
{
0,
0,
0,
0,
0,
0,
1 ,
0,
0,
0,
1 ,
0
}

Definition at line 136 of file indonesian.cc.

Referenced by Xapian::InternalStemIndonesian::r_remove_first_order_prefix().

◆ af_4

const unsigned char af_4[6]
static
Initial value:
=
{
5 ,
0,
0,
0,
0,
0
}

Definition at line 163 of file indonesian.cc.

Referenced by Xapian::InternalStemIndonesian::r_remove_second_order_prefix().

◆ g_vowel

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

◆ s_0

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

Definition at line 175 of file indonesian.cc.

Referenced by Xapian::InternalStemIndonesian::r_KER().

◆ s_1

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

◆ s_2

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

◆ s_3

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

◆ s_4

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

◆ s_5

const symbol s_5[] = { 'a', 'j', 'a', 'r' }
static

◆ s_6

const symbol s_6[] = { 'a', 'j', 'a', 'r' }
static

◆ s_pool

const symbol s_pool[]
static