blob: 619f1767fd6747ca93c7e5c916921378aabd2687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// -*- mode: c++; c-basic-offset: 2; -*-
#ifndef UTF_HH
#define UTF_HH
#include <cstdint>
#include <string>
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
|