Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 16 of 16) sorted by relevance

/unit/src/
H A Dnxt_pcre.c14 nxt_str_t pattern; member
33 char *pattern; in nxt_regex_compile() local
45 pattern = nxt_pointer_to(re, sizeof(nxt_regex_t)); in nxt_regex_compile()
47 nxt_memcpy(pattern, source->start, source->length); in nxt_regex_compile()
48 pattern[source->length] = '\0'; in nxt_regex_compile()
50 re->pattern.length = source->length; in nxt_regex_compile()
51 re->pattern.start = (u_char *) pattern; in nxt_regex_compile()
60 re->code = pcre_compile(pattern, 0, &err->msg, &erroffset, NULL); in nxt_regex_compile()
129 ret, length, subject, &re->pattern); in nxt_regex_match()
H A Dnxt_http_route.c821 pattern = &rule->pattern[0]; in nxt_http_route_rule_create()
944 pattern->negative = 0; in nxt_http_route_pattern_create()
945 pattern->any = 1; in nxt_http_route_pattern_create()
946 pattern->min_length = 0; in nxt_http_route_pattern_create()
948 pattern->regex = 0; in nxt_http_route_pattern_create()
956 pattern->any = 0; in nxt_http_route_pattern_create()
978 pattern->regex = 1; in nxt_http_route_pattern_create()
2035 pattern = &rule->pattern[0]; in nxt_http_route_test_rule()
2038 while (pattern < end) { in nxt_http_route_test_rule()
2051 pattern++; in nxt_http_route_test_rule()
[all …]
H A Dnxt_pcre2.c19 nxt_str_t pattern; member
51 if (nxt_slow_path(nxt_str_dup(mp, &re->pattern, source) == NULL)) { in nxt_regex_compile()
148 &re->pattern); in nxt_regex_match()
154 &re->pattern); in nxt_regex_match()
H A Dnxt_http_route_addr.h71 nxt_http_route_addr_pattern_t *pattern, nxt_conf_value_t *cv);
H A Dnxt_http_route_addr.c18 nxt_http_route_addr_pattern_t *pattern, nxt_conf_value_t *cv) in nxt_http_route_addr_pattern_parse() argument
32 base = &pattern->base; in nxt_http_route_addr_pattern_parse()
84 inet6 = &pattern->addr.v6; in nxt_http_route_addr_pattern_parse()
201 inet = &pattern->addr.v4; in nxt_http_route_addr_pattern_parse()
H A Dnxt_conf_validation.c1935 nxt_str_t pattern; in nxt_conf_vldt_match_pattern() local
1947 nxt_conf_get_string(value, &pattern); in nxt_conf_vldt_match_pattern()
1949 if (pattern.length == 0) { in nxt_conf_vldt_match_pattern()
1953 first = (pattern.start[0] == '!'); in nxt_conf_vldt_match_pattern()
1955 if (first < pattern.length && pattern.start[first] == '~') { in nxt_conf_vldt_match_pattern()
1957 pattern.start += first + 1; in nxt_conf_vldt_match_pattern()
1958 pattern.length -= first + 1; in nxt_conf_vldt_match_pattern()
1980 last = pattern.length - 1; in nxt_conf_vldt_match_pattern()
1983 if (pattern.start[i] == '*' && pattern.start[i + 1] == '*') { in nxt_conf_vldt_match_pattern()
2076 nxt_str_t pattern; in nxt_conf_vldt_match_encoded_pattern() local
[all …]
/unit/test/unit/applications/
H A Dproto.py19 def findall(self, pattern, name='unit.log'): argument
21 return re.findall(pattern, f.read())
23 def search_in_log(self, pattern, name='unit.log'): argument
25 return re.search(pattern, f.read())
27 def wait_for_record(self, pattern, name='unit.log', wait=150): argument
30 found = re.search(pattern, f.read())
/unit/src/java/nginx/unit/websocket/
H A DAuthenticator.java28 private static final Pattern pattern = Pattern field in Authenticator
55 Matcher m = pattern.matcher(WWWAuthenticate); in parseWWWAuthenticateHeader()
/unit/test/
H A Dtest_ruby_hooks.py9 def _wait_cookie(self, pattern, count): argument
11 option.temp_dir + '/ruby/hooks/cookie_' + pattern, count
H A Dtest_access_log.py18 def wait_for_record(self, pattern, name='access.log'): argument
19 return super().wait_for_record(pattern, name)
H A Dtest_ruby_application.py239 def get_locale(pattern): argument
244 if re.match(pattern, l.upper()) is not None
H A Dtest_php_application.py581 pattern = r'\d{4}\/\d\d\/\d\d\s\d\d:.+\[notice\].+Error in application'
583 assert self.wait_for_record(pattern) is not None, 'errors print'
585 errs = self.findall(pattern)
/unit/test/unit/
H A Dutils.py37 def waitforglob(pattern, count=1, timeout=50): argument
41 for f in glob.glob(pattern):
/unit/src/java/nginx/unit/
H A DContext.java203 public final String pattern; field in Context.PrefixPattern
208 pattern = p; in PrefixPattern()
222 return p.pattern.length() - pattern.length(); in compareTo()
783 req.setServletPath(path, p.pattern, path.substring(p.pattern.length())); in findServlet()
2109 clash.add(pattern);
2119 patterns_.add(pattern);
2203 switch (pattern.type_) {
2228 if (pattern == null) {
2229 pattern = new URLPattern(p);
2233 return pattern;
[all …]
/unit/auto/modules/
H A Dpython141 pattern = "{(u_char *) \"%s\", (u_char *) \"%s\", NXT_FS_BIND, (u_char *) \"bind\", 0, NULL, 1, 1},"
151 print(pattern % (base, base))
156 print(pattern % (p, p))
/unit/
H A DCHANGES318 *) Bugfix: the "!" (non-empty) pattern was matched incorrectly; the bug