Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 98) sorted by relevance

1234

/unit/src/
H A Dnxt_http_variables.c120 *str = *r->method; in nxt_http_var_method()
134 *str = r->target; in nxt_http_var_request_uri()
147 *str = *r->path; in nxt_http_var_uri()
160 *str = r->host; in nxt_http_var_host()
200 str->start = nxt_mp_nget(r->mem_pool, str->length); in nxt_http_var_time_local()
275 str->start = start; in nxt_http_var_request_line()
298 str->length = nxt_sprintf(str->start, str->start + NXT_OFF_T_LEN, "%O", in nxt_http_var_body_bytes_sent()
317 str->length = nxt_sprintf(str->start, str->start + 3, "%03d", r->status) in nxt_http_var_status()
402 nxt_str_null(str); in nxt_http_var_arg()
436 nxt_str_null(str); in nxt_http_var_header()
[all …]
H A Dnxt_var.h15 nxt_str_t *str,
18 typedef int64_t (*nxt_var_field_hash_t)(nxt_mp_t *mp, nxt_str_t *str);
42 nxt_is_var(nxt_str_t *str) in nxt_is_var() argument
44 return (nxt_memchr(str->start, '$', str->length) != NULL); in nxt_is_var()
53 nxt_var_t *nxt_var_compile(nxt_str_t *str, nxt_mp_t *mp, nxt_array_t *fields,
55 nxt_int_t nxt_var_test(nxt_str_t *str, nxt_array_t *fields, u_char *error);
58 void nxt_var_raw(nxt_var_t *var, nxt_str_t *str);
63 nxt_var_t *var, nxt_str_t *str);
H A Dnxt_var.c123 nxt_str_t str; in nxt_var_decl_get() local
151 str.start = p; in nxt_var_decl_get()
351 p = str->start; in nxt_var_compile()
352 end = p + str->length; in nxt_var_compile()
379 nxt_memcpy(src, str->start, str->length); in nxt_var_compile()
386 p = str->start; in nxt_var_compile()
419 p = str->start; in nxt_var_test()
420 end = p + str->length; in nxt_var_test()
568 nxt_str_t *str) in nxt_var_query() argument
622 str->length = length; in nxt_var_query()
[all …]
H A Dnxt_php_sapi.c539 p = nxt_cpymem(p, str.start, str.length); in nxt_php_set_target()
572 p = nxt_cpymem(p, str.start, str.length); in nxt_php_set_target()
615 nxt_memcpy(tmp, str.start, str.length); in nxt_php_set_target()
801 nxt_memcpy(p, str->start, str->length); in nxt_php_disable_functions()
898 while (str->length > 0 && str->start[str->length - 1] == t) { in nxt_php_str_trim_trail()
899 str->length--; in nxt_php_str_trim_trail()
902 str->start[str->length] = '\0'; in nxt_php_str_trim_trail()
909 while (str->length > 0 && str->start[0] == t) { in nxt_php_str_trim_lead()
911 str->start++; in nxt_php_str_trim_lead()
1407 char *str; local
[all …]
H A Dnxt_string.h108 #define nxt_string(str) { nxt_length(str), (u_char *) str } argument
109 #define nxt_string_zero(str) { sizeof(str), (u_char *) str } argument
113 #define nxt_str_set(str, text) \ argument
115 (str)->length = nxt_length(text); \
116 (str)->start = (u_char *) text; \
120 #define nxt_str_null(str) \ argument
122 (str)->length = 0; \
123 (str)->start = NULL; \
H A Dnxt_conf.h106 #define nxt_conf_json_parse_str(mp, str) \ argument
107 nxt_conf_json_parse(mp, (str)->start, (str)->start + (str)->length, NULL)
118 NXT_EXPORT void nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str);
119 NXT_EXPORT void nxt_conf_set_string(nxt_conf_value_t *value, nxt_str_t *str);
121 nxt_mp_t *mp, const nxt_str_t *str);
H A Dnxt_java.c197 nxt_str_t str; in nxt_java_start() local
257 nxt_conf_get_string(value, &str); in nxt_java_start()
259 opt = nxt_malloc(str.length + 1); in nxt_java_start()
265 memcpy(opt, str.start, str.length); in nxt_java_start()
266 opt[str.length] = '\0'; in nxt_java_start()
282 nxt_conf_get_string(value, &str); in nxt_java_start()
284 opt_len = str.length + 1; in nxt_java_start()
286 char *sc = memchr(str.start, ':', str.length); in nxt_java_start()
298 nxt_memcpy(opt, str.start, str.length); in nxt_java_start()
299 opt[str.length] = '\0'; in nxt_java_start()
[all …]
H A Dnxt_conf.c54 } str; member
167 str->length = value->u.str.length; in nxt_conf_get_string()
168 str->start = value->u.str.start; in nxt_conf_get_string()
187 value->u.str.length = str->length; in nxt_conf_set_string()
189 nxt_memcpy(value->u.str.start, str->start, str->length); in nxt_conf_set_string()
213 value->u.str.length = str->length; in nxt_conf_set_string_dup()
215 nxt_memcpy(value->u.str.start, str->start, str->length); in nxt_conf_set_string_dup()
686 ptr->str = str; in nxt_conf_map_object()
691 s = nxt_str_dup(mp, &ptr->str, &str); in nxt_conf_map_object()
2071 value->u.str.length = s - value->u.str.start; in nxt_conf_json_parse_string()
[all …]
H A Dnxt_external.c67 nxt_str_t str; in nxt_external_start() local
165 nxt_conf_get_string(value, &str); in nxt_external_start()
167 size += str.length + 1; in nxt_external_start()
192 nxt_conf_get_string(value, &str); in nxt_external_start()
194 p = nxt_cpymem(p, str.start, str.length); in nxt_external_start()
H A Dnxt_cert.c499 nxt_str_t str; in nxt_cert_details() local
526 str.length = end - buf; in nxt_cert_details()
527 str.start = buf; in nxt_cert_details()
534 str.length = end - buf; in nxt_cert_details()
535 str.start = buf; in nxt_cert_details()
598 str.length = BIO_get_mem_data(bio, &str.start); in nxt_cert_details()
621 str.length = BIO_get_mem_data(bio, &str.start); in nxt_cert_details()
656 nxt_str_t str; in nxt_cert_name_details() local
725 str.length = len; in nxt_cert_name_details()
726 str.start = buf; in nxt_cert_name_details()
[all …]
H A Dnxt_openssl.c887 domain.length = str.length;
888 nxt_memcpy_lowcase(domain.start, str.start, str.length);
979 nxt_str_t str; local
984 str = item->name;
1032 nxt_str_t str; local
1055 if (str.length == 0) {
1068 str.start = nxt_mp_nget(c->mem_pool, str.length);
1073 nxt_memcpy_lowcase(str.start, (const u_char *) servername, str.length);
1082 if (str.start[i] == '.') {
1083 str.start += i;
[all …]
/unit/test/python/variables/
H A Dwsgi.py10 ('Content-Length', str(len(body))),
17 ('Wsgi-Version', str(environ['wsgi.version'])),
19 ('Wsgi-Multithread', str(environ['wsgi.multithread'])),
20 ('Wsgi-Multiprocess', str(environ['wsgi.multiprocess'])),
21 ('Wsgi-Run-Once', str(environ['wsgi.run_once'])),
/unit/test/go/ns_inspect/
H A Dapp.go42 str, err := os.Readlink(fmt.Sprintf("/proc/self/ns/%s", nstype))
47 str = str[len(nstype)+2:]
48 str = str[:len(str)-1]
49 val, err := strconv.ParseUint(str, 10, 64)
/unit/go/
H A Dunit.go88 str := fmt.Sprintf("[go] " + format, args...)
90 C.nxt_cgo_warn(str_ref(str), C.uint32_t(len(str)))
94 str := fmt.Sprintf("[go] " + format, args...)
96 C.nxt_cgo_alert(str_ref(str), C.uint32_t(len(str)))
/unit/test/php/list-extensions/
H A Dindex.php3 function quote($str) { argument
4 return '"' . $str . '"';
/unit/test/python/restart/
H A Dlongstart.py7 body = str(os.getpid()).encode()
9 start_response('200', [('Content-Length', str(len(body)))])
/unit/test/python/threads/
H A Dwsgi.py14 ('Wsgi-Multithread', str(environ['wsgi.multithread'])),
15 ('X-Thread', str(threading.currentThread().ident)),
/unit/src/python/
H A Dnxt_python.c324 nxt_str_t str; in nxt_python_set_target() local
337 nxt_conf_get_string(value, &str); in nxt_python_set_target()
340 nxt_memcpy(module_name, str.start, str.length); in nxt_python_set_target()
341 module_name[str.length] = '\0'; in nxt_python_set_target()
356 nxt_conf_get_string(value, &str); in nxt_python_set_target()
359 nxt_memcpy(callable, str.start, str.length); in nxt_python_set_target()
360 callable[str.length] = '\0'; in nxt_python_set_target()
398 nxt_str_t str; in nxt_python_set_path() local
430 path = PyString_FromStringAndSize((char *) str.start, str.length); in nxt_python_set_path()
433 &str); in nxt_python_set_path()
[all …]
/unit/test/python/input_iter/
H A Dwsgi.py12 ('Content-Length', str(content_length)),
13 ('X-Lines-Count', str(len(body))),
/unit/test/python/input_readline/
H A Dwsgi.py16 ('Content-Length', str(content_length)),
17 ('X-Lines-Count', str(len(body))),
/unit/test/python/environment/
H A Dwsgi.py10 body += str(os.environ[var]) + ','
13 start_response('200', [('Content-Length', str(len(body)))])
/unit/src/java/
H A Dnxt_jni.c157 nxt_java_newString(JNIEnv *env, char *str, uint32_t len) in nxt_java_newString() argument
162 tmp = str[len]; in nxt_java_newString()
165 str[len] = '\0'; in nxt_java_newString()
168 res = (*env)->NewStringUTF(env, str); in nxt_java_newString()
171 str[len] = tmp; in nxt_java_newString()
/unit/test/python/threading/
H A Dwsgi.py15 "(" + str(index) + ") Thread: " + str(self.__x) + "\n"
H A Dasgi.py15 "(" + str(index) + ") Thread: " + str(self.__x) + "\n"
/unit/test/
H A Dtest_configuration.py305 + str(a): {
314 "*:" + str(7000 + a): {"pass": "applications/app-" + str(a)}
325 + str(a): {

1234