Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ffpriv_ie_vowel_change.c File Reference

Contains the exception list for i-e vowel change and implements the functions for getting information from it with binary search. More...

#include <stdlib.h>
#include "fftypes.h"
#include "ffstring.h"
#include "ffword.h"
#include "ffpriv_ie_vowel_change.h"

Go to the source code of this file.

Defines

#define IE_LIST_LEN   177

Functions

static ffint32 ffpriv_ie_list_get (ffword *word, ffint32 index)
ffint32 ffpriv_ie_genitive (ffword *word)
 Checks the i-e vowel change exception lists for the given word and replaces it with its i-e changed genitive stem equivalent if found.
ffint32 ffpriv_ie_partitive (ffword *word)
 Checks the i-e vowel change exception lists for the given word and replaces it with its i-e changed partitive stem equivalent if found.

Variables

static ffcharie_list [IE_LIST_LEN][3]


Detailed Description

Contains the exception list for i-e vowel change and implements the functions for getting information from it with binary search.

The functions are declared in ffpriv_ie_vowel_change.h.

Definition in file ffpriv_ie_vowel_change.c.


Define Documentation

#define IE_LIST_LEN   177
 

Definition at line 39 of file ffpriv_ie_vowel_change.c.

Referenced by ffpriv_ie_list_get().


Function Documentation

ffint32 ffpriv_ie_genitive ffword word  ) 
 

Checks the i-e vowel change exception lists for the given word and replaces it with its i-e changed genitive stem equivalent if found.

Parameters:
word The word to check
Returns:
0 if the word was not in the lists and thus wasn't changed; 1 if the word was in the lists and was changed; negative on error

Definition at line 243 of file ffpriv_ie_vowel_change.c.

References ffpriv_ie_list_get().

Referenced by ffpriv_genitive_stem(), and ffpriv_plural_stem().

static ffint32 ffpriv_ie_list_get ffword word,
ffint32  index
[static]
 

Definition at line 221 of file ffpriv_ie_vowel_change.c.

References ffword::data, ffstring_compare(), ffstring_create(), ffstring_delete(), ffstring_equals(), ie_list, and IE_LIST_LEN.

Referenced by ffpriv_ie_genitive(), and ffpriv_ie_partitive().

ffint32 ffpriv_ie_partitive ffword word  ) 
 

Checks the i-e vowel change exception lists for the given word and replaces it with its i-e changed partitive stem equivalent if found.

Parameters:
word The word to check
Returns:
0 if the word was not in the lists and thus wasn't changed; 1 if the word was in the lists and was changed; negative on error

Definition at line 247 of file ffpriv_ie_vowel_change.c.

References ffpriv_ie_list_get().

Referenced by ffpriv_essive_stem(), ffpriv_partitive_stem(), ffpriv_plural_stem(), and main().


Variable Documentation

ffchar* ie_list[IE_LIST_LEN][3] [static]
 

Definition at line 41 of file ffpriv_ie_vowel_change.c.

Referenced by ffpriv_ie_list_get().


Generated on Thu Jun 2 23:16:59 2005 for FinFlect by  doxygen 1.4.2