Lines Matching refs:str
405 nxt_str_t str; in nxt_python_set_target() local
419 nxt_conf_get_string(value, &str); in nxt_python_set_target()
421 module_name = nxt_alloca(str.length + 1); in nxt_python_set_target()
422 nxt_memcpy(module_name, str.start, str.length); in nxt_python_set_target()
423 module_name[str.length] = '\0'; in nxt_python_set_target()
438 nxt_conf_get_string(value, &str); in nxt_python_set_target()
440 callable = nxt_alloca(str.length + 1); in nxt_python_set_target()
441 nxt_memcpy(callable, str.start, str.length); in nxt_python_set_target()
442 callable[str.length] = '\0'; in nxt_python_set_target()
485 nxt_str_t str; in nxt_python_set_prefix() local
491 nxt_conf_get_string(value, &str); in nxt_python_set_prefix()
493 if (str.length == 0) { in nxt_python_set_prefix()
497 if (str.start[str.length - 1] == '/') { in nxt_python_set_prefix()
498 str.length--; in nxt_python_set_prefix()
500 target->prefix.length = str.length; in nxt_python_set_prefix()
501 prefix = nxt_malloc(str.length); in nxt_python_set_prefix()
507 target->py_prefix = PyString_FromStringAndSize((char *)str.start, in nxt_python_set_prefix()
508 str.length); in nxt_python_set_prefix()
515 nxt_memcpy(prefix, str.start, str.length); in nxt_python_set_prefix()
527 nxt_str_t str; in nxt_python_set_path() local
557 nxt_conf_get_string(value, &str); in nxt_python_set_path()
559 path = PyString_FromStringAndSize((char *) str.start, str.length); in nxt_python_set_path()
562 &str); in nxt_python_set_path()
572 &str); in nxt_python_set_path()