{"id":7465,"date":"2022-12-20T19:38:12","date_gmt":"2022-12-20T22:38:12","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_stringmatch-man3-2\/"},"modified":"2022-12-20T19:38:12","modified_gmt":"2022-12-20T22:38:12","slug":"tcl_stringmatch-man3-2","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_stringmatch-man3-2\/","title":{"rendered":"Tcl_StringMatch (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_StringMatch<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_StringMatch, Tcl_StringCaseMatch \u2212 test whether a string matches a pattern<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <tcl.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_StringMatch<\/b>(<i>str<\/i>, <i>pattern<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_StringCaseMatch<\/b>(<i>str<\/i>, <i>pattern<\/i>, <i>flags<\/i>)<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"37%\">\n<p style=\"margin-top: 1em\">const char <i>*str<\/i> (in)<\/p>\n<\/td>\n<td width=\"15%\"><\/td>\n<td width=\"37%\">\n<p style=\"margin-top: 1em\">String to test.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"37%\">\n<p>const char <i>*pattern<\/i> (in)<\/p>\n<\/td>\n<td width=\"15%\"><\/td>\n<td width=\"37%\">\n<p>Pattern to match against string. May contain special characters from the set *?[].<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"37%\">\n<p>int <i>flags<\/i> (in)<\/p>\n<\/td>\n<td width=\"15%\"><\/td>\n<td width=\"37%\">\n<p>OR-ed combination of match flags, currently only <b>TCL_MATCH_NOCASE<\/b>. 0 specifies a case-sensitive search.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:63%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This utility procedure determines whether a string matches a given pattern. If it does, then <b>Tcl_StringMatch<\/b> returns 1. Otherwise <b>Tcl_StringMatch<\/b> returns 0. The algorithm used for matching is the same algorithm used in the <b>string match<\/b> Tcl command and is similar to the algorithm used by the C-shell for file name matching; see the Tcl manual entry for details.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In <b>Tcl_StringCaseMatch<\/b>, the algorithm is the same, but you have the option to make the matching case-insensitive. If you choose this (by passing <b>TCL_MATCH_NOCASE<\/b>), then the string and pattern are essentially matched in the lower case.<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">match, pattern, string<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_StringMatch, Tcl_StringCaseMatch \u2212 test whether a string matches a pattern <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,3007,3777],"class_list":["post-7465","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_stringcasematch"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7465"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7465\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}