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

finflect.c File Reference

Implementations for the public API functions defined in finflect.h. More...

#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "finflect.h"
#include "ffpriv_basic_cases.h"
#include "ffpriv_general_local_cases.h"
#include "ffpriv_exterior_local_cases.h"
#include "ffpriv_interior_local_cases.h"
#include "ffpriv_means_cases.h"

Go to the source code of this file.

Functions

ffcharff_inflect (const ffchar *word, ffcase thecase, ffint32 count)
 Returns the desired form of the given word.
ffcharff_nominative_singular (const ffchar *word)
 Returns the nominative singular of the given word.
ffcharff_nominative_plural (const ffchar *word)
 Returns the nominative plural of the given word.
ffcharff_genitive_singular (const ffchar *word)
 Returns the genitive singular of the given word.
ffcharff_genitive_plural (const ffchar *word)
 Returns the genitive plural of the given word.
ffcharff_essive_singular (const ffchar *word)
 Returns the essive singular of the given word.
ffcharff_essive_plural (const ffchar *word)
 Returns the essive plural of the given word.
ffcharff_partitive_singular (const ffchar *word)
 Returns the partitive singular of the given word.
ffcharff_partitive_plural (const ffchar *word)
 Returns the partitive plural of the given word.
ffcharff_translative_singular (const ffchar *word)
 Returns the translative singular of the given word.
ffcharff_translative_plural (const ffchar *word)
 Returns the translative plural of the given word.
ffcharff_inessive_singular (const ffchar *word)
 Returns the inessive singular of the given word.
ffcharff_inessive_plural (const ffchar *word)
 Returns the inessive plural of the given word.
ffcharff_elative_singular (const ffchar *word)
 Returns the elative singular of the given word.
ffcharff_elative_plural (const ffchar *word)
 Returns the elative plural of the given word.
ffcharff_illative_singular (const ffchar *word)
 Returns the illative singular of the given word.
ffcharff_illative_plural (const ffchar *word)
 Returns the illative plural of the given word.
ffcharff_adessive_singular (const ffchar *word)
 Returns the adessive singular of the given word.
ffcharff_adessive_plural (const ffchar *word)
 Returns the adessive plural of the given word.
ffcharff_ablative_singular (const ffchar *word)
 Returns the ablative singular of the given word.
ffcharff_ablative_plural (const ffchar *word)
 Returns the ablative plural of the given word.
ffcharff_allative_singular (const ffchar *word)
 Returns the allative singular of the given word.
ffcharff_allative_plural (const ffchar *word)
 Returns the allative plural of the given word.
ffcharff_abessive_singular (const ffchar *word)
 Returns the abessive singular of the given word.
ffcharff_abessive_plural (const ffchar *word)
 Returns the abessive plural of the given word.
ffcharff_instructive_singular (const ffchar *word)
 Returns the instructive singular of the given word.
ffcharff_instructive_plural (const ffchar *word)
 Returns the instructive plural of the given word.
ffcharff_comitative_plural (const ffchar *word)
 Returns the comitative plural of the given word.


Detailed Description

Implementations for the public API functions defined in finflect.h.

Definition in file finflect.c.


Function Documentation

ffchar* ff_abessive_plural const ffchar word  ) 
 

Returns the abessive plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 337 of file finflect.c.

References ffword::data, ffpriv_abessive_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_abessive_singular const ffchar word  ) 
 

Returns the abessive singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 328 of file finflect.c.

References ffword::data, ffpriv_abessive_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_ablative_plural const ffchar word  ) 
 

Returns the ablative plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 301 of file finflect.c.

References ffword::data, ffpriv_ablative_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_ablative_singular const ffchar word  ) 
 

Returns the ablative singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 292 of file finflect.c.

References ffword::data, ffpriv_ablative_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_adessive_plural const ffchar word  ) 
 

Returns the adessive plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 283 of file finflect.c.

References ffword::data, ffpriv_adessive_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_adessive_singular const ffchar word  ) 
 

Returns the adessive singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 274 of file finflect.c.

References ffword::data, ffpriv_adessive_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_allative_plural const ffchar word  ) 
 

Returns the allative plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 319 of file finflect.c.

References ffword::data, ffpriv_allative_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_allative_singular const ffchar word  ) 
 

Returns the allative singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 310 of file finflect.c.

References ffword::data, ffpriv_allative_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_comitative_plural const ffchar word  ) 
 

Returns the comitative plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 364 of file finflect.c.

References ffword::data, ffpriv_comitative_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_elative_plural const ffchar word  ) 
 

Returns the elative plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 247 of file finflect.c.

References ffword::data, ffpriv_elative_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_elative_singular const ffchar word  ) 
 

Returns the elative singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 238 of file finflect.c.

References ffword::data, ffpriv_elative_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_essive_plural const ffchar word  ) 
 

Returns the essive plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 175 of file finflect.c.

References ffword::data, ffpriv_essive_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_essive_singular const ffchar word  ) 
 

Returns the essive singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 166 of file finflect.c.

References ffword::data, ffpriv_essive_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_genitive_plural const ffchar word  ) 
 

Returns the genitive plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 157 of file finflect.c.

References ffword::data, ffpriv_genitive_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_genitive_singular const ffchar word  ) 
 

Returns the genitive singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 148 of file finflect.c.

References ffword::data, ffpriv_genitive_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_illative_plural const ffchar word  ) 
 

Returns the illative plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 265 of file finflect.c.

References ffword::data, ffpriv_illative_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_illative_singular const ffchar word  ) 
 

Returns the illative singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 256 of file finflect.c.

References ffword::data, ffpriv_illative_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_inessive_plural const ffchar word  ) 
 

Returns the inessive plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 229 of file finflect.c.

References ffword::data, ffpriv_inessive_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_inessive_singular const ffchar word  ) 
 

Returns the inessive singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 220 of file finflect.c.

References ffword::data, ffpriv_inessive_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_inflect const ffchar word,
ffcase  thecase,
ffint32  count
 

Returns the desired form of the given word.

Todo:
curse user?

Definition at line 40 of file finflect.c.

References ff_abessive_plural(), ff_abessive_singular(), ff_ablative_plural(), ff_ablative_singular(), ff_adessive_plural(), ff_adessive_singular(), ff_allative_plural(), ff_allative_singular(), ff_comitative_plural(), ff_elative_plural(), ff_elative_singular(), ff_essive_plural(), ff_essive_singular(), ff_genitive_plural(), ff_genitive_singular(), ff_illative_plural(), ff_illative_singular(), ff_inessive_plural(), ff_inessive_singular(), ff_instructive_plural(), ff_instructive_singular(), ff_nominative_plural(), ff_nominative_singular(), ff_partitive_plural(), ff_partitive_singular(), ff_translative_plural(), ff_translative_singular(), FFCASE_ABESSIVE, FFCASE_ABLATIVE, FFCASE_ADESSIVE, FFCASE_ALLATIVE, FFCASE_COMITATIVE, FFCASE_ELATIVE, FFCASE_ESSIVE, FFCASE_GENITIVE, FFCASE_ILLATIVE, FFCASE_INESSIVE, FFCASE_INSTRUCTIVE, FFCASE_NOMINATIVE, FFCASE_PARTITIVE, and FFCASE_TRANSLATIVE.

Referenced by main().

ffchar* ff_instructive_plural const ffchar word  ) 
 

Returns the instructive plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 355 of file finflect.c.

References ffword::data, ffpriv_instructive_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_instructive_singular const ffchar word  ) 
 

Returns the instructive singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 346 of file finflect.c.

References ffword::data, ffpriv_instructive_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_nominative_plural const ffchar word  ) 
 

Returns the nominative plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 139 of file finflect.c.

References ffword::data, ffpriv_nominative_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_nominative_singular const ffchar word  ) 
 

Returns the nominative singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 134 of file finflect.c.

Referenced by ff_inflect().

ffchar* ff_partitive_plural const ffchar word  ) 
 

Returns the partitive plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 193 of file finflect.c.

References ffword::data, ffpriv_partitive_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_partitive_singular const ffchar word  ) 
 

Returns the partitive singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 184 of file finflect.c.

References ffword::data, ffpriv_partitive_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect(), and main().

ffchar* ff_translative_plural const ffchar word  ) 
 

Returns the translative plural of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 211 of file finflect.c.

References ffword::data, ffpriv_translative_plural(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().

ffchar* ff_translative_singular const ffchar word  ) 
 

Returns the translative singular of the given word.

The returned string is a malloc(3)'d C-style string that can be freed with free(3).

Parameters:
word The word to inflect
Returns:
The inflected word

Definition at line 202 of file finflect.c.

References ffword::data, ffpriv_translative_singular(), ffword_create(), ffword_finalize(), and ffstring::str.

Referenced by ff_inflect().


Generated on Sun May 15 21:50:48 2005 for FinFlect by  doxygen 1.4.1