SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Functions
phon_util.c File Reference

Handling of phoneme descriptions (homo phones) More...

Data Structures

struct  SprPhonCache
 

Functions

int spr_phon_lib_len (const char *const *phonlib)
 
char ** spr_phon_lib_free (char **phonlib, SprMsgId *routine)
 Release the memory occupied by the phoneme library. More...
 
void spr_phon_lib_print (SprStream *dest, const char *const *phonlib)
 Print the phone library. More...
 
char ** spr_phon_lib_read (const char *fn_phonlib, SprKeySet **keys)
 
char ** spr_phon_lib_split (char **phonlibL, int *missing)
 
SprPhonCache ** spr_phon_cache_free (SprPhonCache **phoncache, SprMsgId *routine)
 Deallocates the memory used by the phoneme quick acces table. More...
 
SprPhonCache ** spr_phon_cache_make (const char *const *phonlib)
 Make a quick acces table, based on the first letter. More...
 
int spr_phon_get_nr (const char *str, const SprPhonCache *const *phoncache)
 
char * spr_phon_scan_nr (SprPhonNum *phon_id, const char *str, const SprPhonCache *const *phoncache)
 
int spr_phon_str_to_nr (SprPhonNum **phon_nrs, int *allocated_len, int start_pos, const SprPhonCache *const *phoncache, const char *phon_str, const char *phon_delim, const char *ignore, const char *incl_ignore)
 
int spr_phon_find_nr (const SprPhonNum *phon_nrs, int len, SprPhonNum elem)
 Find a given phone is an array of phone numbers. More...
 

Detailed Description

Handling of phoneme descriptions (homo phones)

Date
22/02/95
Author
Kris Demuynck
Revision History:
09/1995 - KD
Updated for use with large vocabulary CSR.
07/2015 - KD
Solved issues with phone strings containing non-ASCII (e.g. UTF-8) characters.