Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
unicode_transcoding.h
Go to the documentation of this file.
1#ifndef ADA_IDNA_UNICODE_TRANSCODING_H
2#define ADA_IDNA_UNICODE_TRANSCODING_H
3
4#include <string>
5#include <string_view>
6
7namespace ada::idna {
8
9size_t utf8_to_utf32(const char* buf, size_t len, char32_t* utf32_output);
10
11size_t utf8_length_from_utf32(const char32_t* buf, size_t len);
12
13size_t utf32_length_from_utf8(const char* buf, size_t len);
14
15size_t utf32_to_utf8(const char32_t* buf, size_t len, char* utf8_output);
16
17} // namespace ada::idna
18
19#endif // ADA_IDNA_UNICODE_TRANSCODING_H
size_t utf32_length_from_utf8(const char *buf, size_t len)
Definition ada_idna.cpp:142
size_t utf32_to_utf8(const char32_t *buf, size_t len, char *utf8_output)
Definition ada_idna.cpp:151
size_t utf8_length_from_utf32(const char32_t *buf, size_t len)
Definition ada_idna.cpp:129
size_t utf8_to_utf32(const char *buf, size_t len, char32_t *utf32_output)
Definition ada_idna.cpp:32