Lines Matching refs:start

52             u_char            start[NXT_CONF_MAX_SHORT_STRING];  member
57 u_char *start; member
95 u_char *start; member
105 static u_char *nxt_conf_json_skip_space(u_char *start, const u_char *end);
107 u_char *start, u_char *end, nxt_conf_json_error_t *error);
109 u_char *start, u_char *end, nxt_conf_json_error_t *error);
117 u_char *start, u_char *end, nxt_conf_json_error_t *error);
119 u_char *start, u_char *end, nxt_conf_json_error_t *error);
121 u_char *start, u_char *end, nxt_conf_json_error_t *error);
168 str->start = value->u.str.start; in nxt_conf_get_string()
172 str->start = value->u.string.start; in nxt_conf_get_string()
183 value->u.string.start = str->start; in nxt_conf_set_string()
189 nxt_memcpy(value->u.str.start, str->start, str->length); in nxt_conf_set_string()
209 value->u.string.start = tmp.start; in nxt_conf_set_string_dup()
215 nxt_memcpy(value->u.str.start, str->start, str->length); in nxt_conf_set_string_dup()
457 parse.start = path->start; in nxt_conf_get_path()
458 parse.end = path->start + path->length; in nxt_conf_get_path()
483 index = nxt_int_parse(token.start, token.length); in nxt_conf_get_path()
509 u_char *p, *start, *end; in nxt_conf_path_next_token() local
512 start = parse->start + 1; in nxt_conf_path_next_token()
514 p = start; in nxt_conf_path_next_token()
520 parse->start = p; in nxt_conf_path_next_token()
523 length = p - start; in nxt_conf_path_next_token()
529 end = nxt_decode_uri(parse->buf, start, length); in nxt_conf_path_next_token()
535 token->start = parse->buf; in nxt_conf_path_next_token()
820 parse.start = path->start; in nxt_conf_op_compile()
821 parse.end = path->start + path->length; in nxt_conf_op_compile()
847 index = nxt_int_parse(token.start, token.length); in nxt_conf_op_compile()
983 dst->u.string.start = nxt_mp_nget(mp, src->u.string.length); in nxt_conf_copy_value()
984 if (nxt_slow_path(dst->u.string.start == NULL)) { in nxt_conf_copy_value()
988 nxt_memcpy(dst->u.string.start, src->u.string.start, in nxt_conf_copy_value()
1242 nxt_conf_json_parse(nxt_mp_t *mp, u_char *start, u_char *end, in nxt_conf_json_parse() argument
1253 p = nxt_conf_json_skip_space(start, end); in nxt_conf_json_parse()
1257 nxt_conf_json_parse_error(error, start, in nxt_conf_json_parse()
1288 nxt_conf_json_skip_space(u_char *start, const u_char *end) in nxt_conf_json_skip_space() argument
1302 for (p = start; nxt_fast_path(p != end); p++) { in nxt_conf_json_skip_space()
1315 start = p; in nxt_conf_json_skip_space()
1365 return start; in nxt_conf_json_skip_space()
1373 nxt_conf_json_parse_value(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_value() argument
1378 ch = *start; in nxt_conf_json_parse_value()
1382 return nxt_conf_json_parse_object(mp, value, start, end, error); in nxt_conf_json_parse_value()
1385 return nxt_conf_json_parse_array(mp, value, start, end, error); in nxt_conf_json_parse_value()
1388 return nxt_conf_json_parse_string(mp, value, start, end, error); in nxt_conf_json_parse_value()
1391 if (nxt_fast_path(end - start >= 4 in nxt_conf_json_parse_value()
1392 && memcmp(start, "true", 4) == 0)) in nxt_conf_json_parse_value()
1397 return start + 4; in nxt_conf_json_parse_value()
1403 if (nxt_fast_path(end - start >= 5 in nxt_conf_json_parse_value()
1404 && memcmp(start, "false", 5) == 0)) in nxt_conf_json_parse_value()
1409 return start + 5; in nxt_conf_json_parse_value()
1415 if (nxt_fast_path(end - start >= 4 in nxt_conf_json_parse_value()
1416 && memcmp(start, "null", 4) == 0)) in nxt_conf_json_parse_value()
1419 return start + 4; in nxt_conf_json_parse_value()
1425 if (nxt_fast_path(end - start > 1)) { in nxt_conf_json_parse_value()
1426 ch = start[1]; in nxt_conf_json_parse_value()
1434 p = nxt_conf_json_parse_number(mp, value, start, end, error); in nxt_conf_json_parse_value()
1462 nxt_conf_json_parse_error(error, start, in nxt_conf_json_parse_value()
1483 nxt_conf_json_parse_object(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_object() argument
1503 p = start; in nxt_conf_json_parse_object()
1671 lhq.key_hash = nxt_djb_hash(lhq.key.start, lhq.key.length); in nxt_conf_object_hash_add()
1710 nxt_conf_json_parse_array(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_array() argument
1731 p = start; in nxt_conf_json_parse_array()
1818 nxt_conf_json_parse_string(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_string() argument
1834 start++; in nxt_conf_json_parse_string()
1839 for (p = start; nxt_fast_path(p != end); p++) { in nxt_conf_json_parse_string()
1939 size = last - start - surplus; in nxt_conf_json_parse_string()
1945 nxt_conf_json_parse_error(error, start, in nxt_conf_json_parse_string()
1955 value->u.string.start = nxt_mp_nget(mp, size); in nxt_conf_json_parse_string()
1956 if (nxt_slow_path(value->u.string.start == NULL)) { in nxt_conf_json_parse_string()
1962 s = value->u.string.start; in nxt_conf_json_parse_string()
1968 s = value->u.str.start; in nxt_conf_json_parse_string()
1972 nxt_memcpy(s, start, size); in nxt_conf_json_parse_string()
1976 p = start; in nxt_conf_json_parse_string()
2068 value->u.string.length = s - value->u.string.start; in nxt_conf_json_parse_string()
2071 value->u.str.length = s - value->u.str.start; in nxt_conf_json_parse_string()
2079 nxt_conf_json_parse_number(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start, in nxt_conf_json_parse_number() argument
2086 s = start; in nxt_conf_json_parse_number()
2125 if (nxt_slow_path(dot_pos - s > 1 && *start == '0')) { in nxt_conf_json_parse_number()
2158 nxt_conf_json_parse_error(error, start, in nxt_conf_json_parse_number()
2167 size = p - start; in nxt_conf_json_parse_number()
2170 nxt_conf_json_parse_error(error, start, in nxt_conf_json_parse_number()
2178 nxt_memcpy(value->u.number, start, size); in nxt_conf_json_parse_number()
2189 nxt_conf_json_parse_error(error, start, in nxt_conf_json_parse_number()
2296 return 2 + nxt_conf_json_escape_length(str.start, str.length); in nxt_conf_json_string_length()
2309 p = nxt_conf_json_escape(p, str.start, str.length); in nxt_conf_json_print_string()
2622 nxt_conf_json_position(u_char *start, const u_char *pos, nxt_uint_t *line, in nxt_conf_json_position() argument
2631 for (p = start; p != pos; p++) { in nxt_conf_json_position()
2638 start = p + 1; in nxt_conf_json_position()
2641 symbols = nxt_utf8_length(start, p - start); in nxt_conf_json_position()