Skip to main content

encode_string_list

Function encode_string_list 

Source
pub fn encode_string_list(items: &[impl AsRef<str>]) -> String
Expand description

Encodes a list value as raw text.

The function escapes each item as encode_string does, writes \; for a ; in an item, and writes a ; after each item, also after the last item. KeyFile::set_string_list writes a list in the same way, and decode_string_list gives the list again.