Home
last modified time | relevance | path

Searched refs:regexp (Results 1 – 25 of 70) sorted by relevance

123

/freebsd/crypto/openssl/util/perl/OpenSSL/
H A DParseC.pm72 { regexp => qr/#if(def|ndef) OPENSSL_NO_DEPRECATED_(\d+_\d+(?:_\d+)?)$/,
84 { regexp => qr/#ifdef ?(.*)/,
97 { regexp => qr/#ifndef ?(.*)/,
110 { regexp => qr/#if (0|1)/,
127 { regexp => qr/#if ?(.*)/,
187 { regexp => qr/#elif (.*)/,
204 { regexp => qr/#else/,
223 { regexp => qr/#endif ?/,
238 { regexp => qr/#define ([[:alpha:]_]\w*)(<<<\(.*?\)>>>)?( (.*))?/,
248 { regexp => qr/#.*/,
[all …]
/freebsd/contrib/less/
H A Dregexp.h2 * Definitions etc. for regexp(3) routines.
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
12 typedef struct regexp { struct
20 } regexp; typedef
28 extern regexp *regcomp _ANSI_ARGS_((constant char *exp));
29 extern int regexec _ANSI_ARGS_((regexp *prog, constant char *string));
30 extern int regexec2 _ANSI_ARGS_((regexp *prog, constant char *string, int notbol));
31 extern void regsub _ANSI_ARGS_((regexp *prog, constant char *source, char *dest));
H A Dregexp.c40 #include "regexp.h"
43 * The "internal use only" fields in regexp.h are present to pass info from
63 * Structure for regexp "program". This is essentially a linear encoding
168 * The first byte of the regexp internal "program" is actually this magic
207 * of the structure of the compiled regexp.
209 regexp *
212 register regexp *r;
232 FAIL("regexp too big");
235 r = (regexp *)malloc(sizeof(regexp)
[all...]
H A Dpattern.h69 #define PATTERN_TYPE struct regexp *
/freebsd/crypto/krb5/src/lib/kadm5/srv/
H A Dsvr_iters.c55 static kadm5_ret_t glob_to_regexp(char *glob, char *realm, char **regexp) in glob_to_regexp() argument
71 *regexp = p; in glob_to_regexp()
160 char *regexp = NULL; in kadm5_get_either() local
172 &regexp)) != KADM5_OK) in kadm5_get_either()
175 if (regcomp(&data.preg, regexp, REG_NOSUB) != 0) { in kadm5_get_either()
177 free(regexp); in kadm5_get_either()
186 free(regexp); in kadm5_get_either()
197 free(regexp); in kadm5_get_either()
/freebsd/contrib/atf/atf-c/
H A Dmacros.h234 #define ATF_REQUIRE_MATCH(regexp, string) do { \ argument
235 const char *_atf_regexp = (regexp); \
241 #define ATF_CHECK_MATCH(regexp, string) do { \ argument
242 const char *_atf_regexp = (regexp); \
248 #define ATF_REQUIRE_MATCH_MSG(regexp, string, fmt, ...) do { \ argument
249 const char *_atf_regexp = (regexp); \
256 #define ATF_CHECK_MATCH_MSG(regexp, string, fmt, ...) do { \ argument
257 const char *_atf_regexp = (regexp); \
/freebsd/contrib/atf/atf-c++/
H A Dmacros.hpp125 #define ATF_REQUIRE_MATCH(regexp, string) \ argument
127 if (!atf::tests::detail::match(regexp, string)) { \
130 << "match regexp '" << regexp << "'"; \
159 #define ATF_REQUIRE_THROW_RE(expected_exception, regexp, statement) \ argument
169 if (!atf::tests::detail::match(regexp, e.what())) { \
173 << e.what() << "), but does not match '" << regexp \
H A Dutils.hpp52 grep_collection(const std::string& regexp, const Collection& collection) in grep_collection() argument
56 if (grep_string(regexp, *iter)) in grep_collection()
H A Dmacros_test.cpp153 const std::string regexp = get_config_var("regexp"); in ATF_TEST_CASE_BODY() local
157 ATF_REQUIRE_MATCH(regexp, string); in ATF_TEST_CASE_BODY()
473 const char *regexp; in ATF_TEST_CASE_BODY() member
485 for (t = &tests[0]; t->regexp != NULL; t++) { in ATF_TEST_CASE_BODY()
487 config["regexp"] = t->regexp; in ATF_TEST_CASE_BODY()
490 std::cout << "Checking with " << t->regexp << ", " << t->string in ATF_TEST_CASE_BODY()
H A Dtests.cpp136 detail::match(const std::string& regexp, const std::string& str) in match() argument
138 return atf::text::match(str, regexp); in match()
/freebsd/usr.bin/m4/tests/
H A Dpatterns.m410 dnl Special case: empty regexp
11 patsubst(`empty regexp',`',`a ')
/freebsd/contrib/sqlite3/autosetup/
H A Dautosetup-test-tclsh9 # Ensure that regexp works
10 regexp (a.*?) a
H A Dautosetup197 if {[regexp {([^=]*)=(.*)} $arg -> n v]} {
399 regexp {^([^:=]*)(:)?(=)?(.*)$} $opt -> name colon equal value
458 if {[regexp {^([^=]+)=(.*)$} $value -> value defaultvalue]} {
1635 if {[regexp {^#.*@section (.*)$} $line -> section]} {
1641 if {[regexp {^#.*@module ([^ ]*)} $line -> modulename]} {
1646 if {![regexp {^# @(.*)} $line -> cmd]} {
1665 if {![regexp {^#(#)? ?(.*)} $line -> hash cmd]} {
1670 } elseif {[regexp {^- (.*)} $cmd -> cmd]} {
2034 regexp "^(\[ \t\]*)(.*)" $text -> indent words
2307 if {[regexp {^'(.*)'(.*)} $word -> quoted after]} {
[all …]
/freebsd/crypto/openssl/test/recipes/
H A D20-test_passwd.t124 my ($cmdarray, $regexp) = @_;
127 return $lines[0] =~ m|$regexp|;
/freebsd/share/examples/csh/
H A Ddot.cshrc62 … 'c/--/(extended-regexp fixed-regexp basic-regexp regexp file ignore-case word-regexp line-regexp \
/freebsd/sys/contrib/openzfs/config/
H A Dkernel-objtool.m486 regexp="^$sp*$dotmacro$sp+STACK_FRAME_NON_STANDARD$sp"
87 AS_IF([$EGREP -s -q "$regexp" $objtool_header],[
/freebsd/crypto/krb5/src/plugins/preauth/pkinit/
H A Dpkinit_matching.c136 regex_t regexp; /* Compiled regular expression */ member
158 regfree(&rc->regexp); in free_rule_component()
342 ret = regcomp(&rc->regexp, value, REG_EXTENDED); in parse_rule_component()
344 regerror(ret, &rc->regexp, err_buf, sizeof(err_buf)); in parse_rule_component()
454 code = regexec(&rc->regexp, value, 0, NULL, 0); in regexp_match()
/freebsd/crypto/krb5/src/kadmin/dbutil/
H A Dkdb5_mkey.c665 static int glob_to_regexp(char *glob, char *realm, char **regexp) in glob_to_regexp() argument
681 *regexp = p; in glob_to_regexp()
839 char *regexp = NULL; in kdb5_update_princ_encryption() local
877 if (glob_to_regexp(name_pattern, "hi", &regexp) != 0) { in kdb5_update_princ_encryption()
885 if (regcomp(&data.preg, regexp, REG_NOSUB) != 0) { in kdb5_update_princ_encryption()
888 regexp); in kdb5_update_princ_encryption()
961 free(regexp); in kdb5_update_princ_encryption()
/freebsd/crypto/libecc/src/arithmetic_tests/
H A Darithmetic_tests_generator.py1060 regexp = r'//.*?$|/\*.*?\*/|\'(?:\\.|[^\\\'])*\'|"(?:\\.|[^\\"])*"'
1061 pattern = re.compile(regexp, re.DOTALL | re.MULTILINE)
1284 def check_regexp(regexp, string): argument
1285 return re.match(regexp+"$", string)
1289 for regexp in asked_tests_regexps:
1291 match = [x for x in all_tests if check_regexp(regexp, x)]
1293 print "Warning: regexp matches no known operation ", regexp
/freebsd/usr.bin/vgrind/
H A DMakefile2 SRCS= regexp.c vfontedpr.c
/freebsd/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectFrame.cpp944 Mangled::NamePreference symbol_mangling, bool regexp) { in PrintRecognizerDetails() argument
965 if (regexp) in PrintRecognizerDetails()
993 Mangled::NamePreference symbol_mangling, bool regexp) { in HandleArgumentCompletion() argument
999 symbol_mangling, regexp); in HandleArgumentCompletion()
1111 Mangled::NamePreference symbol_mangling, bool regexp) { in DoExecute() argument
1119 symbol_mangling, regexp); in DoExecute()
/freebsd/usr.bin/grep/
H A Dzgrep.sh87 --regexp=*)
/freebsd/contrib/tcsh/
H A Dcomplete.tcsh662 complete postmap 'n/1/(hash: regexp:)/' 'c/hash:/f/' 'c/regexp:/f/'
923 c/--/"(extended-regexp fixed-regexp basic-regexp \
924 regexp file ignore-case word-regexp line-regexp \
935 c/--/"(extended-regexp fixed-regexp basic-regexp \
936 regexp file ignore-case word-regexp line-regexp \
947 c/--/"(extended-regexp fixed-regexp basic-regexp \
948 regexp file ignore-case word-regexp line-regexp \
H A Dcsh-mode.el883 (defun csh-pickup-completion (regexp type match pmin pmax)
890 (re-search-forward regexp pmax t)
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DStackFrameRecognizer.h132 bool regexp)> const &callback);

123