URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [insight/] [tcl/] [doc/] [StrMatch.3] - Blame information for rev 1765
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
578 |
markom |
'\"
|
2 |
|
|
'\" Copyright (c) 1989-1993 The Regents of the University of California.
|
3 |
|
|
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
|
4 |
|
|
'\"
|
5 |
|
|
'\" See the file "license.terms" for information on usage and redistribution
|
6 |
|
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
7 |
|
|
'\"
|
8 |
|
|
'\" RCS: @(#) $Id: StrMatch.3,v 1.1.1.1 2002-01-16 10:25:24 markom Exp $
|
9 |
|
|
'\"
|
10 |
|
|
.so man.macros
|
11 |
|
|
.TH Tcl_StringMatch 3 "" Tcl "Tcl Library Procedures"
|
12 |
|
|
.BS
|
13 |
|
|
.SH NAME
|
14 |
|
|
Tcl_StringMatch \- test whether a string matches a pattern
|
15 |
|
|
.SH SYNOPSIS
|
16 |
|
|
.nf
|
17 |
|
|
\fB#include \fR
|
18 |
|
|
.sp
|
19 |
|
|
int
|
20 |
|
|
\fBTcl_StringMatch\fR(\fIstring\fR, \fIpattern\fR)
|
21 |
|
|
.SH ARGUMENTS
|
22 |
|
|
.AP char *string in
|
23 |
|
|
String to test.
|
24 |
|
|
.AP char *pattern in
|
25 |
|
|
Pattern to match against string. May contain special
|
26 |
|
|
characters from the set *?\e[].
|
27 |
|
|
.BE
|
28 |
|
|
|
29 |
|
|
.SH DESCRIPTION
|
30 |
|
|
.PP
|
31 |
|
|
This utility procedure determines whether a string matches
|
32 |
|
|
a given pattern. If it does, then \fBTcl_StringMatch\fR returns
|
33 |
|
|
1. Otherwise \fBTcl_StringMatch\fR returns 0. The algorithm
|
34 |
|
|
used for matching is the same algorithm used in the ``string match''
|
35 |
|
|
Tcl command and is similar to the algorithm used by the C-shell
|
36 |
|
|
for file name matching; see the Tcl manual entry for details.
|
37 |
|
|
|
38 |
|
|
.SH KEYWORDS
|
39 |
|
|
match, pattern, string
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.