码迷,mamicode.com
首页 > 其他好文 > 详细

MatchText MatchStr 区别

时间:2015-01-08 12:56:07      阅读:192      评论:0      收藏:0      [点我收藏+]

标签:

区别就是 是否区分大小写。

str=字符串,区分

text=文本,不区分

时间长了就忘了。

function AnsiCompareText(const S1, S2: string): Integer;

begin
{$IFDEF MSWINDOWS}
Result := CompareString(LOCALE_USER_DEFAULT, NORM_IGNORECASE, PChar(S1),
Length(S1), PChar(S2), Length(S2)) - 2;
{$ENDIF}
{$IFDEF LINUX}
Result := WideCompareText(S1, S2);
{$ENDIF}
end;

MatchText MatchStr 区别

标签:

原文地址:http://www.cnblogs.com/CodeGear/p/4210263.html

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