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

ffpriv_basic_cases.h File Reference

Defines internal functions for inflecting words in basic cases. More...

#include "fftypes.h"
#include "ffword.h"

Go to the source code of this file.

Functions

ffint32 ffpriv_nominative_singular (ffword *word)
 Transforms the given word to its nominative singular form (i.e.
ffint32 ffpriv_nominative_plural (ffword *word)
 Transforms the given word to its nominative plural form.
ffint32 ffpriv_genitive_singular (ffword *word)
 Transforms the given word to its genitive singular form.
ffint32 ffpriv_genitive_plural (ffword *word)
 Transforms the given word to its genitive plural form.


Detailed Description

Defines internal functions for inflecting words in basic cases.

They are implemented in ffpriv_basic_cases.c.

Definition in file ffpriv_basic_cases.h.


Function Documentation

ffint32 ffpriv_genitive_plural ffword word  ) 
 

Transforms the given word to its genitive plural form.

Todo:
RELIC consonant

Todo:
Check this regex

Todo:
Consider writing ffstring_tail_equals_many

Definition at line 72 of file ffpriv_basic_cases.c.

References ffops::cg, ffword::data, FFCASE_GENITIVE, FFCOUNT_PLURAL, ffpriv_is_vowel(), ffpriv_partitive_stem(), ffpriv_plural_stem(), ffpriv_single_letter(), ffregex_match(), ffstring_append(), ffstring_last(), ffstring_last_equals(), ffstring_rfe(), ffstring_tail_equals(), ffword_copy(), ffword_delete(), ffstring::len, ffops::loan, ffword::metadata, and ffstring::str.

Referenced by ff_genitive_plural().

ffint32 ffpriv_genitive_singular ffword word  ) 
 

Transforms the given word to its genitive singular form.

Parameters:
word The word in its basic form
Returns:
0 on success, -1 on error.

Definition at line 58 of file ffpriv_basic_cases.c.

References ffword::data, FFCASE_GENITIVE, FFCOUNT_SINGULAR, ffpriv_genitive_stem(), ffpriv_single_letter(), ffstring_append(), and ffstring::len.

Referenced by ff_genitive_singular().

ffint32 ffpriv_nominative_plural ffword word  ) 
 

Transforms the given word to its nominative plural form.

Parameters:
word The word in its basic form
Returns:
0 on success, -1 on error.

Definition at line 44 of file ffpriv_basic_cases.c.

References ffword::data, FFCASE_NOMINATIVE, FFCOUNT_PLURAL, ffpriv_genitive_stem(), ffpriv_single_letter(), ffstring_append(), and ffstring::len.

Referenced by ff_nominative_plural().

ffint32 ffpriv_nominative_singular ffword word  ) 
 

Transforms the given word to its nominative singular form (i.e.

does absolutely nothing to it).

Parameters:
word The word in its basic form
Returns:
0 on success, -1 on error.

Definition at line 40 of file ffpriv_basic_cases.c.


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