// -*- mode: c++; c-basic-offset: 2; -*- #ifndef UTF_HH #define UTF_HH #include #include char* read_utf8(char const* in, size_t max, uint32_t* out); bool valid_utf8(std::string const& str, size_t start = 0, size_t len = std::string::npos); bool valid_utf8(char const* str, size_t len = std::string::npos); #endif // UTF_HH