Lines Matching refs:res
96 char_u *res = str; in write_string() local
99 if (res == NULL) in write_string()
114 converted = res = string_convert(&conv, res, NULL); in write_string()
119 while (*res != NUL) in write_string()
123 c = utf_ptr2char(res); in write_string()
155 res += utf_ptr2len(res); in write_string()
190 char_u *res; in json_encode_item() local
225 res = val->vval.v_string; in json_encode_item()
226 write_string(gap, res); in json_encode_item()
408 json_decode_string(js_read_T *reader, typval_T *res, int quote) in json_decode_string() argument
416 if (res != NULL) in json_decode_string()
469 if (res != NULL) in json_decode_string()
486 if (res != NULL) in json_decode_string()
497 if (res != NULL) in json_decode_string()
513 if (res != NULL) in json_decode_string()
520 if (res != NULL) in json_decode_string()
538 if (res != NULL) in json_decode_string()
541 res->v_type = VAR_STRING; in json_decode_string()
552 res->vval.v_string = in json_decode_string()
560 res->vval.v_string = ga.ga_data; in json_decode_string()
564 if (res != NULL) in json_decode_string()
566 res->v_type = VAR_SPECIAL; in json_decode_string()
567 res->vval.v_number = VVAL_NONE; in json_decode_string()
594 json_decode_item(js_read_T *reader, typval_T *res, int options) in json_decode_item() argument
607 cur_item = res; in json_decode_item()
609 if (res != NULL) in json_decode_item()
610 init_tv(res); in json_decode_item()
948 if (res != NULL) in json_decode_item()
1060 if (res != NULL) in json_decode_item()
1062 clear_tv(res); in json_decode_item()
1063 res->v_type = VAR_SPECIAL; in json_decode_item()
1064 res->vval.v_number = VVAL_NONE; in json_decode_item()
1082 json_decode_all(js_read_T *reader, typval_T *res, int options) in json_decode_all() argument
1089 ret = json_decode_item(reader, res, options); in json_decode_all()
1114 json_decode(js_read_T *reader, typval_T *res, int options) in json_decode() argument
1121 ret = json_decode_item(reader, res, options); in json_decode()