Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 25 of 248) sorted by relevance

12345678910

/freebsd-10-stable/usr.bin/grep/regex/
Dfastmatch.c40 tre_fixncomp(fastmatch_t *preg, const char *regex, size_t n, int cflags) in tre_fixncomp() argument
48 ret = tre_convert_pattern(regex, n, &wregex, &wlen); in tre_fixncomp()
61 tre_fastncomp(fastmatch_t *preg, const char *regex, size_t n, int cflags) in tre_fastncomp() argument
69 ret = tre_convert_pattern(regex, n, &wregex, &wlen); in tre_fastncomp()
85 tre_fixcomp(fastmatch_t *preg, const char *regex, int cflags) in tre_fixcomp() argument
87 return tre_fixncomp(preg, regex, regex ? strlen(regex) : 0, cflags); in tre_fixcomp()
91 tre_fastcomp(fastmatch_t *preg, const char *regex, int cflags) in tre_fastcomp() argument
93 return tre_fastncomp(preg, regex, regex ? strlen(regex) : 0, cflags); in tre_fastcomp()
97 tre_fixwncomp(fastmatch_t *preg, const wchar_t *regex, size_t n, int cflags) in tre_fixwncomp() argument
99 return tre_compile_literal(preg, regex, n, cflags); in tre_fixwncomp()
[all …]
Dfastmatch.h38 tre_fixcomp(fastmatch_t *preg, const char *regex, int cflags);
41 tre_fastcomp(fastmatch_t *preg, const char *regex, int cflags);
51 tre_fixwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags);
54 tre_fastwcomp(fastmatch_t *preg, const wchar_t *regex, int cflags);
63 tre_fixncomp(fastmatch_t *preg, const char *regex, size_t len, int cflags);
66 tre_fastncomp(fastmatch_t *preg, const char *regex, size_t len, int cflags);
73 tre_fixwncomp(fastmatch_t *preg, const wchar_t *regex, size_t len, int cflags);
76 tre_fastwncomp(fastmatch_t *preg, const wchar_t *regex, size_t len, int cflags);
Dtre-compile.c15 tre_convert_pattern(const char *regex, size_t n, tre_char_t **w, in tre_convert_pattern() argument
36 const unsigned char *str = (const unsigned char *)regex; in tre_convert_pattern()
54 consumed = tre_mbrtowc(wcptr, regex, n, &state); in tre_convert_pattern()
59 if (*regex == '\0') in tre_convert_pattern()
77 regex += consumed; in tre_convert_pattern()
90 *w = (tre_char_t * const *)regex; in tre_convert_pattern()
/freebsd-10-stable/contrib/file/magic/Magdir/
Dc-lang15 0 regex \^#include C
16 >0 regex \^class[[:space:]]+
17 >>&0 regex \\{[\.\*]\\}(;)?$ \b++
21 0 regex \^#[[:space:]]*pragma C source text
23 0 regex \^#[[:space:]]*(if\|ifn)def
24 >&0 regex \^#[[:space:]]*endif$ C source text
26 0 regex \^#[[:space:]]*(if\|ifn)def
27 >&0 regex \^#[[:space:]]*define C source text
29 0 regex \^[[:space:]]*char(\ \\*|\\*)(.+)(=.*)?;[[:space:]]*$ C source text
31 0 regex \^[[:space:]]*double(\ \\*|\\*)(.+)(=.*)?;[[:space:]]*$ C source text
[all …]
Dsisu5 0 regex \^%?[\ \t]*SiSU[\ \t]+insert SiSU text insert
6 >5 regex [0-9.]+ %s
8 0 regex \^%[\ \t]+SiSU[\ \t]+master SiSU text master
9 >5 regex [0-9.]+ %s
11 0 regex \^%?[\ \t]*SiSU[\ \t]+text SiSU text
12 >5 regex [0-9.]+ %s
14 0 regex \^%?[\ \t]*SiSU[\ \t][0-9.]+ SiSU text
15 >5 regex [0-9.]+ %s
17 0 regex \^%*[\ \t]*sisu-[0-9.]+ SiSU text
18 >5 regex [0-9.]+ %s
Dbioinformatics45 >>&0x00 regex =^[@]HD\t.*VN: \b, with SAM header
46 >>>&0 regex =[0-9.]+ \b version %s
122 #0 regex =^@[A-Za-z0-9_.:-]+\?\n
124 #>&1 regex =^[A-Za-z\n.~]++
126 #>>&1 regex =^[A-Za-z0-9_.:-]*\?\n
128 #>>>&1 regex =^[!-~\n]+\n FASTQ
135 # q>0 regex =^[>][!-~\t\ ]+$
137 #>>1 regex !=[!-'Jj;:=?@^`|~\\] FASTA
140 #>>>1 regex !=[EFIJLOPQZefijlopqz] \b, with IUPAC nucleotide codes
141 #>>>1 regex =^[EFIJLOPQZefijlopqz]+$ \b, with Amino Acid codes
[all …]
Druby25 0 regex \^[[:space:]]*require[[:space:]]'[A-Za-z_/]+'
26 >0 regex def\ [a-z]|\ do$
27 >>&0 regex \^[[:space:]]*end([[:space:]]+[;#].*)?$ Ruby script text
30 0 regex \^[[:space:]]*(class|module)[[:space:]][A-Z]
31 >0 regex (modul|includ)e\ [A-Z]|def\ [a-z]
32 >>&0 regex \^[[:space:]]*end([[:space:]]+[;#].*)?$ Ruby script text
36 0 regex \^[[:space:]]*(class|module)[[:space:]][A-Z]
37 >&0 regex \^[[:space:]]*end([[:space:]]+[;#if].*)?$ Ruby script text
43 0 regex \^[[:space:]]*def\ [a-z]|def\ [[:alpha:]]+::[a-z]
44 >&0 regex \^[[:space:]]*end([[:space:]]+[;#].*)?$ Ruby script text
[all …]
Dassembler5 0 regex \^[\040\t]{0,50}\\.asciiz assembler source text
7 0 regex \^[\040\t]{0,50}\\.byte assembler source text
9 0 regex \^[\040\t]{0,50}\\.even assembler source text
11 0 regex \^[\040\t]{0,50}\\.globl assembler source text
13 0 regex \^[\040\t]{0,50}\\.text assembler source text
15 0 regex \^[\040\t]{0,50}\\.file assembler source text
17 0 regex \^[\040\t]{0,50}\\.type assembler source text
Dmake6 0 regex/100l \^CFLAGS makefile script text
8 0 regex/100l \^VPATH makefile script text
10 0 regex/100l \^LDFLAGS makefile script text
12 0 regex/100l \^all: makefile script text
14 0 regex/100l \^\\.PRECIOUS makefile script text
20 0 regex/100l \^\\.BEGIN BSD makefile script text with "%s"
25 0 regex/100l \^\\.include BSD makefile script text with "%s"
28 0 regex/100l \^SUBDIRS automake makefile script text
Dterminfo17 >>12 regex \^[a-zA-Z0-9][a-zA-Z0-9.][^|]* Compiled terminfo entry "%-s"
37 0 regex \^MAX=[0-9]+,[0-9]+$
38 >1 regex \^BEG=[0-9]+,[0-9]+$
39 >2 regex \^SCROLL=[0-9]+,[0-9]+$
40 >3 regex \^VMIN=[0-9]+$
41 >4 regex \^VTIME=[0-9]+$
42 >5 regex \^FLAGS=0x[[:xdigit:]]+$
43 >6 regex \^FG=[0-9],[0-9]+$
44 >7 regex \^BG=[0-9]+,[0-9]+, Solaris xcurses screen image
Dalgol688 0 regex \^PROC Algol 68 source text
10 0 regex MODE[\t\ ] Algol 68 source text
12 0 regex REF[\t\ ] Algol 68 source text
14 0 regex FLEX[\t\ ]\*\\[ Algol 68 source text
16 #0 regex [\t\ ]OD Algol 68 source text
18 #0 regex [\t\ ]FI Algol 68 source text
Dmarc2117 >>0 regex/1l (^[0-9]{5})[acdnp][^bhlnqsu-z] MARC21 Bibliographic
19 >>0 regex/1l (^[0-9]{5})[acdnosx][z] MARC21 Authority
21 >>0 regex/1l (^[0-9]{5})[cdn][uvxy] MARC21 Holdings
23 >>0 regex/1l (^[0-9]{5})[acdn][w] MARC21 Classification
25 >>0 regex/1l (^[0-9]{5})[cdn][q] MARC21 Community
29 >>0 regex/1l (^.{21})([^0]{2}) (non-conforming)
Dpython48 0 regex \^from[\040\t\f\r\n]+([A-Za-z0-9_]|\\.)+[\040\t\f\r\n]+import.*$ Python script text execut…
66 0 regex \^import\ [_[:alpha:]]+\ as\ [[:alpha:]][[:space:]]*$ Python script text executable
71 #>&0 regex .*'''$ Python script text executable
75 #>&0 regex .*"""$ Python script text executable
82 >&0 regex \^[[:space:]]*except.*:$ Python script text executable
89 0 regex \^class\ [_[:alpha:]]+(\\(.*\\))?(\ )*:([\ \t]+pass)?$ Python script text executable
94 0 regex \^[[:space:]]{0,50}def\ {1,50}[_a-zA-Z]{1,100}
95 >&0 regex \\(([[:alpha:]*_,\ ]){0,255}\\):$ Python script text executable
Dandroid12 >0 regex dex\n[0-9]{2}\0 Dalvik dex file
15 >0 regex dey\n[0-9]{2}\0 Dalvik dex file (optimized for host)
49 >>19 regex/1l \^([^n\n]|n[^o]|no[^n]|non[^e]|none.+).* \b, Encrypted (%s)
53 #>>>&1 regex/1l .* \b, Password salt: %s
54 #>>>>&1 regex/1l .* \b, Master salt: %s
55 #>>>>>&1 regex/1l .* \b, PBKDF2 rounds: %s
56 #>>>>>>&1 regex/1l .* \b, IV: %s
57 #>>>>>>>&1 regex/1l .* \b, Key: %s
/freebsd-10-stable/gnu/lib/libregex/
DMakefile13 INCS= regex.h.patched
14 INCSNAME= regex.h
17 PXINCS= ${REGEXDIR}/regex.h
23 CLEANFILES= regex.h.patched gnuregex.c
24 regex.h.patched: regex.h
28 gnuregex.c: regex.c
/freebsd-10-stable/lib/libc/regex/
DMakefile.inc5 .PATH: ${.CURDIR}/regex
11 SYM_MAPS+=${.CURDIR}/regex/Symbol.map
13 MAN+= regex.3
16 MLINKS+=regex.3 regcomp.3 regex.3 regexec.3 regex.3 regerror.3
/freebsd-10-stable/lib/libc/regex/grot/
DMakefile53 sh mkh $(MKHFLAGS) -i _REGEX_H_ $(REGEXHSRC) >regex.tmp
54 cmp -s regex.tmp regex.h 2>/dev/null || cp regex.tmp regex.h
55 rm -f regex.tmp
57 regex.h: h
59 regcomp.o regexec.o regfree.o debug.o: utils.h regex.h regex2.h
96 rm -f junk* core regex.tmp lint
99 rm -f regex.h
/freebsd-10-stable/contrib/gcc/
Dopt-functions.awk22 function flag_set_p(regex, flags)
24 return (" " flags " ") ~ (" " regex " ")
29 function test_flag(regex, flags, string)
31 if (flag_set_p(regex, flags))
67 regex = langs[j]
68 gsub ( "\\+", "\\+", regex )
69 result = result test_flag(regex, flags, " | " macros[j])
/freebsd-10-stable/gnu/lib/libregex/doc/
DMakefile3 INFO = regex
7 CLEANFILES += regex.texi
9 regex.texi: xregex.texi ../regex.h
10 awk -f ${.CURDIR}/include.awk -v source=${.CURDIR}/../regex.h \
/freebsd-10-stable/sys/xen/interface/foreign/
Dmkheader.py96 regex = "#define\s+%s\\b" % define; variable
97 match = re.search(regex, line);
104 regex = "\\b%s\\b" % define; variable
105 output += re.sub(regex, replace, line) + "\n";
115 regex = "union\s+%s\s*\{(.*?)\n\};" % union; variable
116 match = re.search(regex, input, re.S)
125 regex = "struct\s+%s\s*\{(.*?)\n\};" % struct; variable
126 match = re.search(regex, input, re.S)
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Commands/
DCommandObjectType.cpp1194 bool CommandObjectTypeRXFormatList_LoopCallback(void* pt2self, lldb::RegularExpressionSP regex, con…
1201 RegularExpression* regex; member
1204 …Expression* X = NULL, RegularExpression* CX = NULL) : self(S), result(R), regex(X), cate_regex(CX)… in CommandObjectTypeFormatList_LoopCallbackParam()
1306 RegularExpression* regex = new RegularExpression(command.GetArgumentAtIndex(0)); in DoExecute() local
1307 regex->Compile(command.GetArgumentAtIndex(0)); in DoExecute()
1308 … param = new CommandObjectTypeFormatList_LoopCallbackParam(this,&result,regex,cate_regex); in DoExecute()
1362 RegularExpression* regex, in LoopCallback() argument
1365 if (regex == NULL || strcmp(type,regex->GetText()) == 0 || regex->Execute(type)) in LoopCallback()
1371 …ectTypeRXFormatList_LoopCallback(void* pt2self, lldb::RegularExpressionSP regex, const lldb::TypeF…
1382 return param->self->LoopCallback(type.AsCString(), entry, param->regex, param->result); in CommandObjectTypeFormatList_LoopCallback()
[all …]
/freebsd-10-stable/contrib/atf/atf-c++/detail/
Dtext.cpp54 impl::match(const std::string& str, const std::string& regex) in match() argument
59 if (regex.empty()) { in match()
64 if (::regcomp(&preg, regex.c_str(), REG_EXTENDED) != 0) in match()
65 throw std::runtime_error("Invalid regular expression '" + regex + in match()
71 throw std::runtime_error("Invalid regular expression " + regex); in match()
/freebsd-10-stable/contrib/atf/atf-c++/
Dutils.cpp74 atf::utils::grep_file(const std::string& regex, const std::string& path) in grep_file() argument
76 return atf_utils_grep_file("%s", path.c_str(), regex.c_str()); in grep_file()
80 atf::utils::grep_string(const std::string& regex, const std::string& str) in grep_string() argument
82 return atf_utils_grep_string("%s", str.c_str(), regex.c_str()); in grep_string()
/freebsd-10-stable/contrib/llvm/tools/lldb/include/lldb/DataFormatters/
DFormattersContainer.h382 lldb::RegularExpressionSP regex = pos->first; in Delete_Impl() local
383 if ( ::strcmp(type.AsCString(),regex->GetText()) == 0) in Delete_Impl()
420 lldb::RegularExpressionSP regex = m_format_map.GetKeyAtIndex(index); in GetTypeNameSpecifierAtIndex_Impl() local
421 if (regex.get() == NULL) in GetTypeNameSpecifierAtIndex_Impl()
423 return lldb::TypeNameSpecifierImplSP(new TypeNameSpecifierImpl(regex->GetText(), in GetTypeNameSpecifierAtIndex_Impl()
438 lldb::RegularExpressionSP regex = pos->first; in Get_Impl() local
439 if (regex->Execute(key_cstr)) in Get_Impl()
456 lldb::RegularExpressionSP regex = pos->first; in GetExact_Impl() local
457 if (strcmp(regex->GetText(),key.AsCString()) == 0) in GetExact_Impl()
/freebsd-10-stable/contrib/libucl/
Dconfigure.ac54 AC_ARG_ENABLE([regex], AS_HELP_STRING([--enable-regex], optenable
55 [Enable regex checking for schema @<:@default=yes@:>@]), [],
87 AC_CHECK_HEADER([regex.h], [
88 AC_DEFINE(HAVE_REGEX_H, 1, [Define to 1 if you have the <regex.h> header file.])
89 AC_SEARCH_LIBS([regexec], [regex], [
96 [AC_MSG_ERROR([unable to find the regex.h header])

12345678910