36 inline bool validmode(
const std::string & p_str ) {
37 return p_str ==
"r" ||
Collection of low level IO helpers.
Definition io.h:25
constexpr std::string_view AEC_FGCOL_DICTVALUE
ANSI escape code foreground color for dictionary values.
Definition io.h:59
constexpr std::string_view AEC_BGCOL_LIST
ANSI escape code background color for lists.
Definition io.h:63
constexpr std::string_view AEC_FGCOL_RESET
ANSI escape code foreground color reset.
Definition io.h:47
bool validmode(const std::string &p_str)
Checks if p_str is one of: r,w,a,r+,w,a+ .
Definition io.h:36
constexpr std::string_view AEC_FGCOL_HEADER
ANSI escape code foreground color for headers.
Definition io.h:55
constexpr std::string_view AEC_BGCOL_RESET
ANSI escape code background color reset.
Definition io.h:51
int nof()
Look up number of open files with fcntl().
Definition io.cpp:26