SoundexInt
简述
返回表示AText的发音的整数。整数是根据通过发音特征的字符串(SoundEx Codes)唯一转化来的,和字符串长度无关。
SoundexInt(AText: String; ALength: Integer): Integer;
名称 | 类型 | 说明 |
---|
AText | String | 字符串数组,源串 |
Alength | Integer | 整数,在1和8之间,一般定义为4 |
返回 | Integer |
整数,表示发音特征的整数 |
testStr1:= "sun";
s1:=SoundexInt(testStr1,4);
testStr2:= "sum";
s2:=SoundexInt(testStr2,4);
testStr3:= "test";
s3:=SoundexInt(testStr3,4);
return array(s1,s2,s3);
//输出:array(208597,208597,218929)
DecodeSoundexInt