⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 strmatch.3

📁 tcl是工具命令语言
💻 3
字号:
'\"'\" Copyright (c) 1989-1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: StrMatch.3,v 1.4 2000/05/08 22:05:00 hobbs Exp $'\" .so man.macros.TH Tcl_StringMatch 3 8.1 Tcl "Tcl Library Procedures".BS.SH NAMETcl_StringMatch, Tcl_StringCaseMatch \- test whether a string matches a pattern.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spint\fBTcl_StringMatch\fR(\fIstring\fR, \fIpattern\fR).spint\fBTcl_StringCaseMatch\fR(\fIstring\fR, \fIpattern\fR, \fInocase\fR).SH ARGUMENTS.AP char *string inString to test..AP char *pattern inPattern to match against string.  May contain specialcharacters from the set *?\e[]..AP int nocase inSpecifies whether the match should be done case-sensitive (0) orcase-insensitive (1)..BE.SH DESCRIPTION.PPThis utility procedure determines whether a string matchesa given pattern.  If it does, then \fBTcl_StringMatch\fR returns1.  Otherwise \fBTcl_StringMatch\fR returns 0.  The algorithmused for matching is the same algorithm used in the ``string match''Tcl command and is similar to the algorithm used by the C-shellfor file name matching;  see the Tcl manual entry for details..VS 8.1.PPIn \fBTcl_StringCaseMatch\fR, the algorithm is the same, but you havethe option to make the matching case-insensitive.  If you choose this(by passing \fBnocase\fR as 1), then the string and pattern areessentially matched in the lower case..VE 8.1.SH KEYWORDSmatch, pattern, string

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -