File: indAffix.h

package info (click to toggle)
ted 2.16-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,944 kB
  • ctags: 20,273
  • sloc: ansic: 167,980; makefile: 12,518; sh: 263
file content (27 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/************************************************************************/
/*									*/
/*  Procedures to read an ispell affix file and dictionary files and	*/
/*  to build a finite automaton that recognises the same words.		*/
/*									*/
/************************************************************************/

typedef int (*PUT_FUN)	( void * voidind, const unsigned char * word );

extern void * indAffixReadFile(	const char *		filename,
				const unsigned char *	charKinds,
				const unsigned char *	charShifts );

extern int indAffixApplyRules(	const void *		voidars,
				const unsigned char *	word,
				int			len,
				const unsigned char *	rules,
				void *			voidind,
				PUT_FUN			fun );

extern int indAffixChar(	const void *		voidars,
				const unsigned char *	buf,
				int *			pPos );

extern void indAffixListRules(	const void *		voidars );

extern void indAffixFreeRules(	void *			voidars );