zoukankan      html  css  js  c++  java
  • 字符串函数_比较字符串与字符串集合

    引用StrUntil.pas单元


    里面有两个函数可以比较字符串与字符串集合,判断是否字符串在字符串集合中


    函数 function AnsiMatchStr(const AText: string; const AValues: array of string): Boolean; $[StrUtils.pas
    功能 返回字符串数组AValues中是否包含字符串AText
    说明 区分大小写
    参考 function StrUtils.AnsiIndexStr
    例子 CheckBox1.Checked := AnsiMatchStr(Edit1.Text, ['a1', 'a2', 'a3', 'a4']);


    函数 function AnsiMatchText(const AText: string; const AValues: array of string): Boolean; $[StrUtils.pas
    功能 返回字符串数组AValues中是否包含字符串AText
    说明 不区分大小写
    参考 function StrUtils.AnsiIndexText
    例子 CheckBox1.Checked := AnsiMatchText(Edit1.Text, ['a1', 'a2', 'a3', 'a4']);

  • 相关阅读:
    ajax的调用
    jqurey的应用
    php数据访问数据层
    php租房子练习
    php投票
    Thinkphp 控制器
    ThinkPHP 框架基础
    php留言板
    php上传文件及头像预览
    php文件操作
  • 原文地址:https://www.cnblogs.com/jupt/p/3922936.html
Copyright © 2011-2022 走看看