sfparse_unescape¶
Synopsis¶
#include <sfparse.h>
-
void sfparse_unescape(sfparse_vec *dest, const sfparse_vec *src)¶
sfparse_unescape()
copies src to dest by removing escapes (\
). src should be the pointer tosfparse_value.vec
of typesfparse_type.SFPARSE_TYPE_STRING
produced by eithersfparse_parser_dict()
,sfparse_parser_list()
,sfparse_parser_inner_list()
,sfparse_parser_item()
, orsfparse_parser_param()
, otherwise the behavior is undefined.dest->base
must point to the buffer that has sufficient space to store the unescaped string. The memory areas pointed bydest->base
andsrc->base
must not overlap.This function sets the length of unescaped string to
dest->len
.