13 std::string
const UNKNOWN_SRC{
"-:1"};
16 allowed_info(std::string
const& src_info)
18 return !src_info.empty() && src_info != UNKNOWN_SRC;
28 std::string
const& cached_info)
30 if (!allowed_info(curr_info))
32 std::string
const tag =
" # ";
33 std::string
const printed_info =
34 curr_info == cached_info ?
"\"\"" : curr_info;
35 return tag + printed_info;
41 std::string
const printed_info = allowed_info(info) ? info :
"";
42 return "#SRC|" + printed_info +
"|";
56 if (std::regex_match(key, m, std::regex{R
"(.*\[(\d+)\])"}) && 57 std::stoul(m[1]) != sz - 1) { 71 result = key +
": " + result;
83 result = key +
": " + result;
100 std::string
const str = boost::any_cast<
ps_atom_t>(a);
101 return str == std::string(9,
'\0') ?
"@nil" : str;
std::string printed_suffix(std::string const &key, std::size_t const sz)
std::string print_annotated_info(std::string const &curr_info, std::string const &cached_info)
bool is_sequence_element(std::string const &key)
std::string opening_brace()
std::string printed_prefix(std::string const &key)
std::string print_prefix_annotated_info(std::string const &curr_info)
std::string printed_prefix(std::string const &key)
std::string value(boost::any const &)
std::string printed_prefix(std::string const &key)