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

finflect.h File Reference

The primary header of the FinFlect public API. More...

#include "ffcase.h"
#include "fftypes.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_singular (const ffchar *word)
 Returns the comitative singular of the given word.
ffcharff_comitative_plural (const ffchar *word)
 Returns the comitative plural of the given word.


Detailed Description

The primary header of the FinFlect public API.

Defines the inflection functions.

Definition in file finflect.h.


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 or NULL if error happened

Definition at line 489 of file finflect.c.

References ffpriv_abessive_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 473 of file finflect.c.

References ffpriv_abessive_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 425 of file finflect.c.

References ffpriv_ablative_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 409 of file finflect.c.

References ffpriv_ablative_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 393 of file finflect.c.

References ffpriv_adessive_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 377 of file finflect.c.

References ffpriv_adessive_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 457 of file finflect.c.

References ffpriv_allative_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 441 of file finflect.c.

References ffpriv_allative_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 536 of file finflect.c.

References ffpriv_comitative_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

Referenced by ff_inflect().

ffchar* ff_comitative_singular const ffchar word  ) 
 

Returns the comitative 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 or NULL if error happened

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 or NULL if error happened

Definition at line 329 of file finflect.c.

References ffpriv_elative_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 313 of file finflect.c.

References ffpriv_elative_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 201 of file finflect.c.

References ffpriv_essive_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 185 of file finflect.c.

References ffpriv_essive_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 169 of file finflect.c.

References ffpriv_genitive_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 153 of file finflect.c.

References ffpriv_genitive_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 361 of file finflect.c.

References ffpriv_illative_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 345 of file finflect.c.

References ffpriv_illative_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 297 of file finflect.c.

References ffpriv_inessive_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 281 of file finflect.c.

References ffpriv_inessive_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 521 of file finflect.c.

References ffpriv_instructive_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 505 of file finflect.c.

References ffpriv_instructive_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 137 of file finflect.c.

References ffpriv_nominative_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 133 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 or NULL if error happened

Definition at line 233 of file finflect.c.

References ffpriv_partitive_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 217 of file finflect.c.

References ffpriv_partitive_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 265 of file finflect.c.

References ffpriv_translative_plural(), ffword_create(), ffword_delete(), and ffword_finalize().

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 or NULL if error happened

Definition at line 249 of file finflect.c.

References ffpriv_translative_singular(), ffword_create(), ffword_delete(), and ffword_finalize().

Referenced by ff_inflect().


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