Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 118) sorted by relevance

12345

/unit/src/
H A Dnxt_string.h37 (void) memset(buf, 0, length)
41 (void) memset(buf, c, length)
49 size_t length);
51 size_t length);
61 return ((u_char *) memcpy(dst, src, length)) + length; in nxt_cpymem()
89 size_t length);
91 size_t length);
134 (((s1)->length == (s2)->length) \
139 (((s1)->length == (s2)->length) \
161 size_t length);
[all …]
H A Dnxt_parse.c45 length--; in nxt_int_parse()
47 } while (length != 0); in nxt_int_parse()
91 length--; in nxt_size_t_parse()
93 } while (length != 0); in nxt_size_t_parse()
116 length--; in nxt_size_parse()
196 length--; in nxt_off_t_parse()
216 size_t length; in nxt_str_int_parse() local
222 length = s->length; in nxt_str_int_parse()
249 length--; in nxt_str_int_parse()
251 } while (length != 0); in nxt_str_int_parse()
[all …]
H A Dnxt_string.c19 s->length = length; in nxt_str_alloc()
57 dst->length = src->length; in nxt_str_dup()
94 length--; in nxt_memcpy_lowcase()
107 length--; in nxt_memcpy_upcase()
133 if (length == 0) { in nxt_cpystrn()
249 length--; in nxt_memstrn()
278 size_t length) in nxt_memcasestrn() argument
285 length--; in nxt_memcasestrn()
319 s1 = end - length; in nxt_rmemstrn()
322 length--; in nxt_rmemstrn()
[all …]
H A Dnxt_file_name.c24 size_t length; in nxt_file_name_create() local
34 length = 0; in nxt_file_name_create()
42 length++; in nxt_file_name_create()
57 length += v->length; in nxt_file_name_create()
68 length++; in nxt_file_name_create()
75 length += va_arg(args, u_int); in nxt_file_name_create()
98 length++; in nxt_file_name_create()
108 if (length == 0) { in nxt_file_name_create()
112 file_name->len = length - zero; in nxt_file_name_create()
114 fn = nxt_file_name_alloc(mp, length); in nxt_file_name_create()
[all …]
H A Dnxt_http_route_addr.c36 addr.length--; in nxt_http_route_addr_pattern_parse()
54 if (nxt_slow_path(addr.length < 2)) { in nxt_http_route_addr_pattern_parse()
62 port.length = addr.length - 2; in nxt_http_route_addr_pattern_parse()
80 addr.length--; in nxt_http_route_addr_pattern_parse()
82 end = addr.start + addr.length; in nxt_http_route_addr_pattern_parse()
91 port.length = end - port.start; in nxt_http_route_addr_pattern_parse()
137 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
207 port.length = addr.start + addr.length - port.start; in nxt_http_route_addr_pattern_parse()
208 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
245 addr.length = delim - addr.start; in nxt_http_route_addr_pattern_parse()
[all …]
H A Dnxt_sockaddr.c97 size = length; in nxt_sockaddr_create()
98 copy = length; in nxt_sockaddr_create()
215 length = 0; in nxt_getsockname()
592 length = addr->length - 5; in nxt_sockaddr_unix_parse()
653 length = addr->length - 1; in nxt_sockaddr_inet6_parse()
664 length = addr->length; in nxt_sockaddr_inet6_parse()
673 length = (start + length) - p; in nxt_sockaddr_inet6_parse()
729 length = addr->length; in nxt_sockaddr_inet_parse()
749 length = (addr->start + addr->length) - p; in nxt_sockaddr_inet_parse()
788 end = buf + length; in nxt_inet_addr()
[all …]
H A Dnxt_errno.c40 size_t size, length, n; in nxt_strerror_start() local
76 length = nxt_strlen(msg); in nxt_strerror_start()
77 size += length; in nxt_strerror_start()
79 if (length == 0 /* HP-UX empty strings. */ in nxt_strerror_start()
90 && nxt_memcmp(msg + length - 10, " occurred.", 9) == 0) in nxt_strerror_start()
114 length = nxt_strlen(msg); in nxt_strerror_start()
116 nxt_sys_errlist[err].length = length; in nxt_strerror_start()
119 p = nxt_cpymem(p, msg, length); in nxt_strerror_start()
122 nxt_sys_errlist[err].length = 13; in nxt_strerror_start()
149 size = nxt_min(size, msg->length); in nxt_runtime_strerror()
H A Dnxt_php_sapi.c562 tmp = nxt_malloc(target->root.length + 1 + str.length + 1); in nxt_php_set_target()
599 target->script_name.length = target->script_filename.length in nxt_php_set_target()
617 target->index.length = str.length; in nxt_php_set_target()
867 size_t length; in nxt_php_dirname() local
875 length = file->length; in nxt_php_dirname()
878 length--; in nxt_php_dirname()
881 dir->length = length; in nxt_php_dirname()
898 while (str->length > 0 && str->start[str->length - 1] == t) { in nxt_php_str_trim_trail()
973 ctx->path_info.length = r->path_length - path.length; in nxt_php_dynamic_request()
989 ctx->script_filename.length = ctx->root->length in nxt_php_dynamic_request()
[all …]
H A Dnxt_var.c10 size_t length; member
24 uint32_t length; member
352 end = p + str->length; in nxt_var_compile()
372 var->length = str->length; in nxt_var_compile()
457 end = start + length; in nxt_var_next_part()
521 part->length = length; in nxt_var_next_part()
531 str->length = var->length; in nxt_var_raw()
595 length = var->length; in nxt_var_query()
610 length += value->length - subs[i].length; in nxt_var_query()
613 length += 1; in nxt_var_query()
[all …]
H A Dnxt_pcre.c37 err->offset = source->length; in nxt_regex_compile()
39 re = nxt_mp_get(mp, sizeof(nxt_regex_t) + source->length + 1); 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()
119 nxt_regex_match(nxt_regex_t *re, u_char *subject, size_t length, in nxt_regex_match() argument
124 ret = pcre_exec(re->code, re->extra, (const char *) subject, length, 0, 0, in nxt_regex_match()
129 ret, length, subject, &re->pattern); in nxt_regex_match()
H A Dnxt_http_variables.c174 str->length = r->remote->address_length; in nxt_http_var_remote_addr()
198 str->length = date_cache.size; in nxt_http_var_time_local()
243 size_t length; in nxt_http_var_request_line() local
249 length = r->method->length + 1 + r->target.length + 1 + r->version.length; in nxt_http_var_request_line()
258 if (r->method->length != 0) { in nxt_http_var_request_line()
261 if (r->target.length != 0) { in nxt_http_var_request_line()
265 if (r->version.length != 0) { in nxt_http_var_request_line()
276 str->length = p - start; in nxt_http_var_request_line()
394 str->length = nv->value_length; in nxt_http_var_arg()
429 str->length = f->value_length; in nxt_http_var_header()
[all …]
H A Dnxt_fastcgi_record_parse.c146 fp->length = ch << 8; in nxt_fastcgi_record_parse()
151 fp->length |= ch; in nxt_fastcgi_record_parse()
163 fp->type, fp->length, fp->padding); in nxt_fastcgi_record_parse()
195 fp->length--; in nxt_fastcgi_record_parse()
197 if (fp->length != 0) { in nxt_fastcgi_record_parse()
256 if (fp->length == 0) { in nxt_fastcgi_buffer()
263 if (fp->length >= size && in->retain == 0) { in nxt_fastcgi_buffer()
286 if (fp->length < size) { in nxt_fastcgi_buffer()
287 p += fp->length; in nxt_fastcgi_buffer()
300 fp->length -= size; in nxt_fastcgi_buffer()
[all …]
H A Dnxt_sprintf.c102 size_t length; in nxt_vsprintf() local
146 length = v->length; in nxt_vsprintf()
169 length = va_arg(args, size_t); in nxt_vsprintf()
384 length = nxt_length(nan); in nxt_vsprintf()
561 length = nxt_length(null); in nxt_vsprintf()
564 length = nxt_min((size_t) (end - buf), length); in nxt_vsprintf()
567 buf = nxt_cpymem(buf, p, length); in nxt_vsprintf()
579 size_t length; in nxt_integer() local
676 end = buf + length; in nxt_integer()
691 size_t length; in nxt_number() local
[all …]
H A Dnxt_http_route.c794 rule->u.name.length = name->length; in nxt_http_route_rule_name_create()
955 test.length--; in nxt_http_route_pattern_create()
964 test.length--; in nxt_http_route_pattern_create()
1013 test.length--; in nxt_http_route_pattern_create()
1023 tmp.length = test.length; in nxt_http_route_pattern_create()
1035 test.length -= tmp.length + 1; in nxt_http_route_pattern_create()
1064 test.length -= tmp.length; in nxt_http_route_pattern_create()
1078 tmp.length = 0; in nxt_http_route_pattern_create()
1204 slice->length = test->length; in nxt_http_route_pattern_slice()
1429 rest.length -= segments->length + 1; in nxt_http_pass_segments()
[all …]
H A Dnxt_http_static.c129 if (acf->chroot.length > 0) { in nxt_http_static_init()
332 length = shr->length + index->length; in nxt_http_static_send_ready()
382 if (chr->length > 0) { in nxt_http_static_send_ready()
473 if (chr->length > 0) { in nxt_http_static_send_ready()
557 if (mtype->length != 0) { in nxt_http_static_send_ready()
614 length = r->path->length + encode * 2 + 1; in nxt_http_static_send_ready()
616 if (r->args->length > 0) { in nxt_http_static_send_ready()
617 length += 1 + r->args->length; in nxt_http_static_send_ready()
626 field->value_length = length; in nxt_http_static_send_ready()
637 if (r->args->length > 0) { in nxt_http_static_send_ready()
[all …]
H A Dnxt_pcre2.c55 re->code = pcre2_compile((PCRE2_SPTR) source->start, source->length, 0, in nxt_regex_compile()
90 err->offset = source->length; in nxt_regex_compile()
133 nxt_regex_match(nxt_regex_t *re, u_char *subject, size_t length, in nxt_regex_match() argument
139 ret = pcre2_match(re->code, (PCRE2_SPTR) subject, length, 0, 0, match, in nxt_regex_match()
147 "using \"%V\"", ret, length, subject, in nxt_regex_match()
153 "using \"%V\"", errptr, ret, length, subject, in nxt_regex_match()
H A Dnxt_conn.c135 size_t size, length; in nxt_conn_local_addr() local
149 length = NXT_INET6_ADDR_STR_LEN; in nxt_conn_local_addr()
150 size = offsetof(nxt_sockaddr_t, u) + socklen + length; in nxt_conn_local_addr()
156 length = NXT_INET_ADDR_STR_LEN; in nxt_conn_local_addr()
157 size = offsetof(nxt_sockaddr_t, u) + socklen + length; in nxt_conn_local_addr()
167 sa->length = length; in nxt_conn_local_addr()
H A Dnxt_fastcgi_source.c17 u_char length[4]; member
33 if (nxt_fast_path(length < 128)) { in nxt_fastcgi_param_length()
34 *p = (u_char) length; in nxt_fastcgi_param_length()
38 p[3] = (u_char) length; length >>= 8; in nxt_fastcgi_param_length()
39 p[2] = (u_char) length; length >>= 8; in nxt_fastcgi_param_length()
40 p[1] = (u_char) length; length >>= 8; in nxt_fastcgi_param_length()
41 p[0] = (u_char) (length | 0x80); in nxt_fastcgi_param_length()
356 param->buf = param->length; in nxt_fastcgi_next_param()
363 param->buf = param->length; in nxt_fastcgi_next_param()
639 nxt_off_t length; in nxt_fastcgi_source_content_length() local
[all …]
/unit/docs/
H A Dchanges.xsls44 !{$conf/rpm/length}
47 !{$conf/deb/length}
50 !{$conf/generic/length}
163 X:var length = {
166 length = "$max")
181 X:template length(text, prefix, length) {
183 $length - $prefix + string-length($br)),
191 X:when "string-length($text) + $prefix &lt;= $length" {
192 !{$length - $prefix}
196 !{$length - $prefix + 1}
[all …]
H A Dchange_log_conf.dtd3 <!ELEMENT generic (length, start, indent?) >
4 <!ELEMENT rpm (length, start, indent?) >
5 <!ELEMENT deb (length, start, indent?) >
7 <!ELEMENT length (#PCDATA) > element
11 <!ELEMENT changes (title, length,
/unit/test/python/body_generate/
H A Dwsgi.py2 length = env.get('HTTP_X_LENGTH', '10')
3 bytes = b'X' * int(length)
5 start_response('200', [('Content-Length', length)])
/unit/test/unit/applications/
H A Dwebsockets.py103 length = head2 & 0b01111111
104 if length == 126:
106 (length,) = struct.unpack('!H', data)
107 elif length == 127:
109 (length,) = struct.unpack('!Q', data)
116 if length != 0:
117 data = recv_bytes(sock, length)
123 if length >= 2:
130 elif length == 0:
148 length=None, argument
[all …]
/unit/src/java/nginx/unit/websocket/server/
H A DUriTemplate.java46 if (path == null || path.length() ==0 || !path.startsWith("/")) { in UriTemplate()
51 StringBuilder normalized = new StringBuilder(path.length()); in UriTemplate()
59 for (int i = 0; i < segments.length; i++) { in UriTemplate()
61 if (segment.length() == 0) { in UriTemplate()
62 if (i == 0 || (i == segments.length - 1 && paramCount == 0)) { in UriTemplate()
79 segment = segment.substring(1, segment.length() - 1); in UriTemplate()
/unit/src/test/
H A Dnxt_base64_test.c73 ret = nxt_base64_decode(NULL, tests[i].enc.start, tests[i].enc.length); in nxt_base64_test()
79 if ((size_t) ret != tests[i].dec.length) { in nxt_base64_test()
83 &tests[i].enc, ret, tests[i].dec.length); in nxt_base64_test()
87 ret = nxt_base64_decode(buf, tests[i].enc.start, tests[i].enc.length); in nxt_base64_test()
/unit/src/nodejs/unit-http/
H A Dhttp_server.js66 count = value.length;
106 for (var i = 0; i < keys.length; i++) {
140 this.headers_count -= value.length;
141 this.headers_len -= value.length * name_len;
197 for (var i = 0; i < keys.length; i++) {
256 contentLength = chunk.length;
260 contentLength = chunk.length;
447 if (typeof args[args.length - 1] === 'function') {
487 if (this._output.length <= 0) {
491 while (this._output.length > 0) {
[all …]

12345