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