sf_unescape¶
Synopsis¶
#include <sfparse.h>
-
void sf_unescape(sf_vec *dest, const sf_vec *src)¶
sf_unescape()
copies src to dest by removing escapes (\
). src should be the pointer tosf_value.vec
of typesf_type.SF_TYPE_STRING
produced by eithersf_parser_dict()
,sf_parser_list()
,sf_parser_inner_list()
,sf_parser_item()
, orsf_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
.