Lines Matching refs:u

63     } nxt_packed u;  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()
171 str->length = value->u.string.length; in nxt_conf_get_string()
172 str->start = value->u.string.start; in nxt_conf_get_string()
182 value->u.string.length = str->length; in nxt_conf_set_string()
183 value->u.string.start = str->start; in nxt_conf_set_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()
208 value->u.string.length = tmp.length; in nxt_conf_set_string_dup()
209 value->u.string.start = tmp.start; in nxt_conf_set_string_dup()
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()
225 return nxt_strtod(value->u.number, NULL); in nxt_conf_get_number()
232 return value->u.boolean; in nxt_conf_get_boolean()
239 return value->u.object->count; in nxt_conf_object_members_count()
258 value->u.object = nxt_pointer_to(value, sizeof(nxt_conf_value_t)); in nxt_conf_create_object()
259 value->u.object->count = count; in nxt_conf_create_object()
273 member = &object->u.object->members[index]; in nxt_conf_set_member()
287 member = &object->u.object->members[index]; in nxt_conf_set_member_string()
301 member = &object->u.object->members[index]; in nxt_conf_set_member_string_dup()
316 member = &object->u.object->members[index]; in nxt_conf_set_member_integer()
320 p = member->value.u.number; in nxt_conf_set_member_integer()
336 member = &object->u.object->members[index]; in nxt_conf_set_member_null()
359 value->u.array = nxt_pointer_to(value, sizeof(nxt_conf_value_t)); in nxt_conf_create_array()
360 value->u.array->count = count; in nxt_conf_create_array()
372 array->u.array->elements[index] = *value; in nxt_conf_set_element()
382 element = &array->u.array->elements[index]; in nxt_conf_set_element_string_dup()
391 return value->u.array->count; in nxt_conf_array_elements_count()
398 return (value->type == NXT_CONF_VALUE_ARRAY) ? value->u.array->count : 1; in nxt_conf_array_elements_count_or_1()
540 object = value->u.object; in nxt_conf_get_object_member()
599 ptr->ui8 = v->u.boolean; in nxt_conf_map_object()
615 num = nxt_strtod(v->u.number, NULL); in nxt_conf_map_object()
652 ptr->dbl = nxt_strtod(v->u.number, NULL); in nxt_conf_map_object()
726 object = value->u.object; in nxt_conf_next_object_member()
750 array = value->u.array; in nxt_conf_get_array_element()
769 array = value->u.array; in nxt_conf_get_array_element_or_itself()
789 array = value->u.array; in nxt_conf_array_qsort()
889 op->index = node->u.array->count; in nxt_conf_op_compile()
906 if (op->index > root->u.array->count) { in nxt_conf_op_compile()
925 op->index = root->u.object->count; in nxt_conf_op_compile()
969 dst->u.string.start = nxt_mp_nget(mp, src->u.string.length); in nxt_conf_copy_value()
970 if (nxt_slow_path(dst->u.string.start == NULL)) { in nxt_conf_copy_value()
974 nxt_memcpy(dst->u.string.start, src->u.string.start, in nxt_conf_copy_value()
975 src->u.string.length); in nxt_conf_copy_value()
977 dst->u.string.length = src->u.string.length; in nxt_conf_copy_value()
988 dst->u = src->u; in nxt_conf_copy_value()
1007 count = src->u.array->count; in nxt_conf_copy_array()
1020 dst->u.array = nxt_mp_get(mp, size); in nxt_conf_copy_array()
1021 if (nxt_slow_path(dst->u.array == NULL)) { in nxt_conf_copy_array()
1025 dst->u.array->count = count; in nxt_conf_copy_array()
1040 index = (op == NULL) ? src->u.array->count : op->index; in nxt_conf_copy_array()
1044 rc = nxt_conf_copy_value(mp, pass_op, &dst->u.array->elements[d], in nxt_conf_copy_array()
1045 &src->u.array->elements[s]); in nxt_conf_copy_array()
1068 dst->u.array->elements[d] = *value; in nxt_conf_copy_array()
1075 dst->u.array->elements[d] = *value; in nxt_conf_copy_array()
1108 count = src->u.object->count; in nxt_conf_copy_object()
1122 dst->u.object = nxt_mp_get(mp, size); in nxt_conf_copy_object()
1123 if (nxt_slow_path(dst->u.object == NULL)) { in nxt_conf_copy_object()
1127 dst->u.object->count = count; in nxt_conf_copy_object()
1142 index = (op == NULL) ? src->u.object->count : op->index; in nxt_conf_copy_object()
1147 &dst->u.object->members[d].name, in nxt_conf_copy_object()
1148 &src->u.object->members[s].name); in nxt_conf_copy_object()
1155 &dst->u.object->members[d].value, in nxt_conf_copy_object()
1156 &src->u.object->members[s].value); in nxt_conf_copy_object()
1182 &dst->u.object->members[d].name, in nxt_conf_copy_object()
1189 dst->u.object->members[d].value = member->value; in nxt_conf_copy_object()
1196 &dst->u.object->members[d].name, in nxt_conf_copy_object()
1197 &src->u.object->members[s].name); in nxt_conf_copy_object()
1205 dst->u.object->members[d].value = *value; in nxt_conf_copy_object()
1380 value->u.boolean = 1; in nxt_conf_json_parse_value()
1392 value->u.boolean = 0; in nxt_conf_json_parse_value()
1620 value->u.object = object; in nxt_conf_json_parse_object()
1782 value->u.array = array; in nxt_conf_json_parse_array()
1941 value->u.string.start = nxt_mp_nget(mp, size); in nxt_conf_json_parse_string()
1942 if (nxt_slow_path(value->u.string.start == NULL)) { in nxt_conf_json_parse_string()
1946 value->u.string.length = size; in nxt_conf_json_parse_string()
1948 s = value->u.string.start; in nxt_conf_json_parse_string()
1952 value->u.str.length = size; in nxt_conf_json_parse_string()
1954 s = value->u.str.start; in nxt_conf_json_parse_string()
2054 value->u.string.length = s - value->u.string.start; in nxt_conf_json_parse_string()
2057 value->u.str.length = s - value->u.str.start; in nxt_conf_json_parse_string()
2164 nxt_memcpy(value->u.number, start, size); in nxt_conf_json_parse_number()
2165 value->u.number[size] = '\0'; in nxt_conf_json_parse_number()
2170 num = nxt_strtod(value->u.number, &end); in nxt_conf_json_parse_number()
2184 nxt_thread_log_alert("strtod(\"%s\", %s) failed %E", value->u.number, in nxt_conf_json_parse_number()
2218 return value->u.boolean ? nxt_length("true") : nxt_length("false"); in nxt_conf_json_length()
2222 return nxt_strlen(value->u.number); in nxt_conf_json_length()
2251 return value->u.boolean ? nxt_cpymem(p, "true", 4) in nxt_conf_json_print()
2256 return nxt_cpystr(p, value->u.number); in nxt_conf_json_print()
2311 array = value->u.array; in nxt_conf_json_array_length()
2352 array = value->u.array; in nxt_conf_json_print_array()
2406 object = value->u.object; in nxt_conf_json_object_length()
2449 object = value->u.object; in nxt_conf_json_print_object()