码迷,mamicode.com
首页 > Windows程序 > 详细

delphi PosAnsi

时间:2018-02-15 16:55:45      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:sans   body   int   result   ansi   nbsp   pre   validate   div   

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;

 

delphi PosAnsi

标签:sans   body   int   result   ansi   nbsp   pre   validate   div   

原文地址:https://www.cnblogs.com/westsoft/p/8449593.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!