本文整理自网络,侵删。
function ValidateName(n: string): string;var banned, res: string; i,j: integer;begin res:= n; banned:= '\/:*?"<>|'; for i:= 1 to Length(res) do for j:= 1 to Length(banned) do if res[i]=banned[j] then res[i]:=' '; Result:= res;end;
相关阅读 >>
idftp tencoding and iidtextencoding
Delphi base64, quoted-printable 的解码与编码函数
更多相关阅读请进入《Delphi》频道 >>