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

ffpriv_ss_abnormal.c File Reference

Contains the exception list for words that end in söörör and behave abnormally, and implements the functions for getting information from it with binary search. More...

#include "ffpriv_ss_abnormal.h"
#include "ffstring.h"

Go to the source code of this file.

Defines

#define SS_LIST_LEN   107

Functions

ffint32 ffpriv_ss_genitive (ffword *word)
 Checks the s-word exception lists for the given word and replaces it with its genitive stem equivalent if found.

Variables

static ffcharss_list [SS_LIST_LEN][2]


Detailed Description

Contains the exception list for words that end in söörör and behave abnormally, and implements the functions for getting information from it with binary search.

The functions are declared in ffpriv_ss_abnormal.h.

Definition in file ffpriv_ss_abnormal.c.


Define Documentation

#define SS_LIST_LEN   107
 

Definition at line 34 of file ffpriv_ss_abnormal.c.

Referenced by ffpriv_ss_genitive().


Function Documentation

ffint32 ffpriv_ss_genitive ffword word  ) 
 

Checks the s-word exception lists for the given word and replaces it with its 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 150 of file ffpriv_ss_abnormal.c.

References ffword::data, ffstring_compare(), ffstring_create(), ffstring_delete(), ffstring_equals(), ss_list, and SS_LIST_LEN.

Referenced by ffpriv_genitive_stem(), and main().


Variable Documentation

ffchar* ss_list[SS_LIST_LEN][2] [static]
 

Definition at line 40 of file ffpriv_ss_abnormal.c.

Referenced by ffpriv_ss_genitive().


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