#include <arpa/inet.h>#include <errno.h>#include <stdlib.h>#include <atalk/byteorder.h>#include <atalk/logger.h>#include <atalk/unicode.h>Macros | |
| #define | GETUCVAL(utf8_trailbyte, shift) |
| #define | GETUTF8TRAILBYTE(uc, shift) |
Functions | |
| static size_t | utf8_pull (void *cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
| Convert from UTF-8 to UTF-16. | |
| static size_t | utf8_push (void *, char **, size_t *, char **, size_t *) |
Variables | |
| struct charset_functions | charset_utf8 |
| struct charset_functions | charset_utf8_mac |
| #define GETUCVAL | ( | utf8_trailbyte, | |
| shift ) |
Given a trailing UTF-8 byte, get the contribution from it to the Unicode scalar value for a particular bit shift amount
| #define GETUTF8TRAILBYTE | ( | uc, | |
| shift ) |
Given a unicode scalar, get a trail UTF-8 byte for a particular bit shift amount
|
static |
Convert from UTF-8 to UTF-16.
|
static |
Convert from UTF-16 to UTF-8
| struct charset_functions charset_utf8 |
| struct charset_functions charset_utf8_mac |