phonetic.h

来自「c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及」· C头文件 代码 · 共 67 行

H
67
字号
/* +++Date last modified: 05-Jul-1997 */

/*
**  PHONETIC.H - Snippets header file for functions to perform
**             phonetic string matching.
*/

#ifndef PHONETIC__H
#define PHONETIC__H

#include "sniptype.h"


/*
**  File SOUNDEX.C
*/

char *soundex(char *instr, char *outstr);


/*
**  File SOUNDEX4.C
*/

void  soundex4(const char *instr, char *outstr, int N);


/*
**  File SOUNDEX5.C
*/

#define SNDMAX (1 + 6 + 6*6 + 6*6*6)
#define SNDLEN (26 * SNDMAX)

int soundex5(char *instr);


/*
**  File METAPHON.C
*/

/*
**  MAXMETAPH is the length of the Metaphone code.
**
**  Four is a good compromise value for English names. For comparing words
**  which are not names or for some non-English names, use a longer code
**  length for more precise matches.
**
**  The default here is 5.
*/

#define MAXMETAPH 5

typedef enum {COMPARE, GENERATE} metaphlag;

Boolean_T metaphone(const char *Word, char *Metaph, metaphlag Flag);


/*
**  File APPROX.C
*/

void App_init(char *pattern, char *text, int degree);
void App_next(char **start, char **end, int *howclose);

#endif /* PHONETIC__H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?