DiSMEC++
dismec::io::detail Namespace Reference

Functions

std::string print_char (char c)
 

Function Documentation

◆ print_char()

std::string dismec::io::detail::print_char ( char  c)

Helper function needed to create error messages. If c is a printable character, it returns c directly, otherwise the returned string contains an escape sequence of a backslash followed by the integer identifying the character.

Definition at line 10 of file common.cpp.

References dismec::io::model::to_string().

Referenced by dismec::io::parse_sparse_vector_from_text().