2019-01-10 15:22:39 -08:00
|
|
|
#ifndef TREE_SITTER_UTF16_H_
|
|
|
|
|
#define TREE_SITTER_UTF16_H_
|
2015-12-28 10:40:53 -08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <stdlib.h>
|
2018-08-02 15:30:40 -07:00
|
|
|
#include "utf8proc.h"
|
2015-12-28 10:40:53 -08:00
|
|
|
|
|
|
|
|
// Analogous to utf8proc's utf8proc_iterate function. Reads one code point from
|
2018-08-02 15:30:40 -07:00
|
|
|
// the given UTF16 string and stores it in the location pointed to by `code_point`.
|
2015-12-28 10:40:53 -08:00
|
|
|
// Returns the number of bytes in `string` that were read.
|
2018-08-02 15:30:40 -07:00
|
|
|
utf8proc_ssize_t utf16_iterate(const utf8proc_uint8_t *, utf8proc_ssize_t, utf8proc_int32_t *);
|
2015-12-28 10:40:53 -08:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2019-01-10 15:22:39 -08:00
|
|
|
#endif // TREE_SITTER_UTF16_H_
|