|
字符串函数大全(9) 参考 <NULL> 例子 Edit2.Text := DecodeSoundexWord(SpinEdit2.Value); ━━━━━━━━━━━━━━━━━━━━━ 首部 function SoundexSimilar(const AText, AOther: string; ALength: TSoundexLength = 4): Boolean; $[StrUtils.pas 功能 返回两个字符串的探测字符串是否相同 说明 Result := Soundex(AText, ALength) = Soundex(AOther, ALength) 参考 <NULL> 例子 CheckBox1.Checked := SoundexSimilar(Edit1.Text, Edit2.Text, SpinEdit1.Value); ━━━━━━━━━━━━━━━━━━━━━ 首部 function SoundexCompare(const AText, AOther: string; ALength: TSoundexLength = 4): Integer; $[StrUtils.pas 功能 返回比较两个字符串的探测字符串的结果 说明 Result := AnsiCompareStr(Soundex(AText, ALength), Soundex(AOther, ALength)) 参考 function SysUtils.AnsiCompareStr 例子 SpinEdit2.Value := SoundexCompare(Edit1.Text, Edit2.Text, SpinEdit1.Value); ━━━━━━━━━━━━━━━━━━━━━ 首部 function SoundeXProc(const AText, AOther: string): Boolean; $[StrUtils.pas 功能 调用SoundexSimilar返回两个字符串的探测字符串是否相同 说明 系统变量AnsiResemblesProc的默认值 参考 function StrUtils.AnsiResemblesText 例子 [var AnsiResemblesProc: TCompareTextProc = SoundeXProc;]
|