liba 0.1.15
An algorithm library based on C/C++
Loading...
Searching...
No Matches
utf.h
Go to the documentation of this file.
1
14#ifndef LIBA_UTF_H
15#define LIBA_UTF_H
16
17#include "a.h"
18
25#if defined(__cplusplus)
26extern "C" {
27#endif /* __cplusplus */
28
35A_EXTERN unsigned int a_utf_encode(void *str, a_u32 val);
36
44A_EXTERN unsigned int a_utf_decode(void const *str, a_u32 *val);
45
51A_EXTERN a_size a_utf_length(void const *str);
52#define a_utf_len(str) a_utf_length(str)
53
54#if defined(__cplusplus)
55} /* extern "C" */
56#endif /* __cplusplus */
57
60#endif /* a/utf.h */
algorithm library
unsigned int a_utf_encode(void *str, uint32_t val)
encode one unicode code point into UTF-8
size_t a_utf_length(void const *str)
length of a UTF-8 string terminated with a null character
unsigned int a_utf_decode(void const *str, uint32_t *val)
decode one unicode code point from UTF-8
#define a_size
Definition a.h:610
#define a_u32
Definition a.h:490