kvarn::prelude::internals::prelude::utils

Function encode_quoted_str

source
pub fn encode_quoted_str(src: &str, dest: &mut String)
Expand description

Encodes, to be decoded by quoted_str_split, src by appending to dest.

This takes care of escapes, quotes, etc. The output of quoted_str_split when given dest should be the same as src.

Capacity on dest is reserved using heuristics - you don’t need to use with_capacity or reserve on dest.