「Acet-str-wcmatch」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成:「{{AutoLISP}} ; 構文 : (acet-str-wcmatch ''string'' ''pattern'' [ ''caseInsensitive'']) ; 機能 : 文字列 string がパターン pattern と一致する場合、T を返す。 ; 引数 :* String … 評価する文字列 :* pattern … 比較するパターン :* caseInsensitive … nil でない場合、wcmatch 操作は大文字小文字を区別するモードで実行される。 ; 戻り値 : パターンを一致すれば T、それ以外は nil…」)
 
(相違点なし)

2025年8月6日 (水) 06:43時点における最新版

構文
(acet-str-wcmatch string pattern [ caseInsensitive])


機能
文字列 string がパターン pattern と一致する場合、T を返す。


引数
  • String … 評価する文字列
  • pattern … 比較するパターン
  • caseInsensitive … nil でない場合、wcmatch 操作は大文字小文字を区別するモードで実行される。


戻り値
パターンを一致すれば T、それ以外は nil


サンプル
(acet-str-wcmatch "ABC" "abc")
T

(acet-str-wcmatch "ABC" "abc" T)
nil

(acet-str-wcmatch "バックします" "バック*")
T

(acet-str-wcmatch "バックします" "バック*")
nil



関連事項