7#ifndef _MIMETIC_UTILS_H_
8#define _MIMETIC_UTILS_H_
13#include <mimetic/libconfig.h>
14#include <mimetic/strutils.h>
19std::ostream& crlf(std::ostream&);
20std::ostream& nl(std::ostream&);
23inline int isblank(
char c)
25 return c ==
' ' || c ==
'\t';
33std::string extractFilename(
const std::string&);
36std::string int2str(
int n);
39bool string_is_blank(
const std::string&);
42int str2int(
const std::string& s);
45std::string int2hex(
unsigned int n);
54template<
typename Iterator>
55Iterator find_bm(Iterator bit, Iterator eit,
const std::string& word)
57 return std::search(bit, eit, word.begin(), word.end());