天软金融分析.NET函数大全 > TSL函数 > 基础函数 > 字符串 > 发音相关函数

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 
相关