A set of functions that help out with parsing lists of things.
static bool parse_csv_line(const basis::astring &to_parse, structures::string_array &fields)
examines the string "to_parse" which should be in csv format.
static basis::astring put_ids_in_string(const structures::int_set &ids, char separator=',')
returns a string containing a "separator" separated list of ids.
static basis::astring emit_quoted_chunk(const basis::astring &to_emit)
ensures that quotes inside the string "to_emit" are escaped.
static void create_csv_line(const structures::string_array &to_csv, basis::astring &target)
DEFINE_CLASS_NAME("list_parsing")
static bool get_ids_from_string(const basis::astring &string, structures::int_set &ids)
returns true if a set of unique ids can be extracted from "string".