Home
last modified time | relevance | path

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

123456789

/freebsd-9-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-9-stable/contrib/file/magic/Magdir/
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 …]
Dc-lang14 0 regex \^#include C source text
17 0 regex \^char[\ \t\n]+ C source text
19 0 regex \^double[\ \t\n]+ C source text
21 0 regex \^extern[\ \t\n]+ C source text
23 0 regex \^float[\ \t\n]+ C source text
25 0 regex \^struct[\ \t\n]+ C source text
27 0 regex \^union[\ \t\n]+ C source text
34 0 regex \^template[\ \t]+<.*>[\ \t\n]+ C++ source text
37 0 regex \^virtual[\ \t\n]+ C++ source text
40 0 regex \^class[\ \t\n]+ C++ source text
[all …]
Dmake5 0 regex/100l \^CFLAGS makefile script text
7 0 regex/100l \^VPATH makefile script text
9 0 regex/100l \^LDFLAGS makefile script text
11 0 regex/100l \^all: makefile script text
13 0 regex/100l \^\.PRECIOUS makefile script text
15 0 regex/100l \^\.BEGIN BSD makefile script text
17 0 regex/100l \^\.include BSD makefile script text
20 0 regex/100l \^SUBDIRS automake makefile script text
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
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
Dmarc2115 >0 regex/1l (^[0-9]{5})[acdnp][^bhlnqsu-z] MARC21 Bibliographic
17 >0 regex/1l (^[0-9]{5})[acdnosx][z] MARC21 Authority
19 >0 regex/1l (^[0-9]{5})[cdn][uvxy] MARC21 Holdings
21 0 regex/1l (^[0-9]{5})[acdn][w] MARC21 Classification
23 >0 regex/1l (^[0-9]{5})[cdn][q] MARC21 Community
27 >0 regex/1l (^.{21})([^0]{2}) (non-conforming)
Druby25 0 regex \^[\ \t]*require[\ \t]'[A-Za-z_/]+'
26 >0 regex include\ [A-Z]|def\ [a-z]|\ do$
27 >>0 regex \^[\ \t]*end([\ \t]*[;#].*)?$ Ruby script text
29 0 regex \^[\ \t]*(class|module)[\ \t][A-Z]
30 >0 regex (modul|includ)e\ [A-Z]|def\ [a-z]
31 >>0 regex \^[\ \t]*end([\ \t]*[;#].*)?$ Ruby module source text
Dpython44 0 regex \^from\\s+(\\w|\\.)+\\s+import.*$ Python script text executable
54 #>&0 regex .*'''$ Python script text executable
58 #>&0 regex .*"""$ Python script text executable
65 >&0 regex \^\\s*except.*: Python script text executable
71 0 regex \^(\ |\\t){0,50}def\ {1,50}[a-zA-Z]{1,100}
72 >&0 regex \ {0,50}\\(([a-zA-Z]|,|\ ){1,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
Dgames180 # Modified by (1): Abel Cheung (regex, more game format)
182 0 regex \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format
232 >&0 regex [0-9a-z.]+ \b, version %s
238 >&0 regex [0-9a-z.]+ \b, version %s
245 >>&0 regex [0-9a-z.]+ \b, version %s
250 2 regex/c \\(;.*GM\\[[0-9]{1,2}\\] Smart Game Format
251 >2 regex/c GM\\[1\\] - Go Game
252 >2 regex/c GM\\[6\\] - BackGammon Game
253 >2 regex/c GM\\[11\\] - Hex Game
254 >2 regex/c GM\\[18\\] - Amazons Game
[all …]
Dscientific94 >&0 regex/1l \^.{40}
95 >>&0 regex/1l [0-9]{2}-[A-Z]{3}-[0-9]{2}\ {3}
96 >>>&0 regex/1ls [A-Z0-9]{4}.{14}$
97 >>>>&0 regex/1l [A-Z0-9]{4} Protein Data Bank data, ID Code %s
99 >>>>0 regex/1l [0-9]{2}-[A-Z]{3}-[0-9]{2} \b, %s
/freebsd-9-stable/gnu/lib/libregex/
DFREEBSD-upgrade3 GNU regex (from glibc):
11 mkdir regex regex/posix
13 cp regcomp.c regex.c regex_internal.c regex_internal.h regexec.c $OLDPWD/regex/
14 cp regex.h $OLDPWD/regex/posix/
16 cp libc/include/regex.h regex/
17 cd regex
DMakefile10 INCS= regex.h.patched
11 INCSNAME= regex.h
14 PXINCS= posix/regex.h
19 CLEANFILES= regex.h.patched gnuregex.c
20 regex.h.patched: regex.h
24 gnuregex.c: regex.c
/freebsd-9-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-9-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-9-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-9-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-9-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-9-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])
/freebsd-9-stable/usr.sbin/setfmac/
Dsetfmac.c52 regex_t regex; /* compiled regular expression to match */ member
324 error = regcomp(&entry->regex, regexstr, REG_EXTENDED | REG_NOSUB); in add_spec_line()
326 size = regerror(error, &entry->regex, NULL, 0); in add_spec_line()
330 (void)regerror(error, &entry->regex, regerrorstr, size); in add_spec_line()
417 error = regexec(&ent->regex, ftsent->fts_path, 1, in apply_specs()
425 size = regerror(error, &ent->regex, NULL, 0); in apply_specs()
429 (void)regerror(error, &ent->regex, regerrorstr, in apply_specs()
/freebsd-9-stable/contrib/bind9/lib/dns/rdata/generic/
Dnaptr_35.c38 char regex[256]; in txt_valid_regex() local
64 cp = regex; in txt_valid_regex()
117 n = isc_regex_validate(regex); in txt_valid_regex()
128 unsigned char *regex; in fromtext_naptr() local
171 regex = isc_buffer_used(target); in fromtext_naptr()
175 RETTOK(txt_valid_regex(regex)); in fromtext_naptr()
255 unsigned char *regex; in fromwire_naptr() local
288 regex = isc_buffer_used(target); in fromwire_naptr()
290 RETERR(txt_valid_regex(regex)); in fromwire_naptr()

123456789