2012-09-04 20:34:43 +01:00
|
|
|
#ifndef JV_UNICODE_H
|
|
|
|
|
#define JV_UNICODE_H
|
2012-09-06 21:36:11 +01:00
|
|
|
|
2017-01-24 23:05:47 -05:00
|
|
|
const char* jvp_utf8_backtrack(const char* start, const char* min, int *missing_bytes);
|
2012-09-06 21:36:11 +01:00
|
|
|
const char* jvp_utf8_next(const char* in, const char* end, int* codepoint);
|
2013-06-22 13:34:24 +01:00
|
|
|
int jvp_utf8_is_valid(const char* in, const char* end);
|
2012-09-06 21:36:11 +01:00
|
|
|
|
2012-09-04 20:34:43 +01:00
|
|
|
int jvp_utf8_decode_length(char startchar);
|
|
|
|
|
|
|
|
|
|
int jvp_utf8_encode_length(int codepoint);
|
|
|
|
|
int jvp_utf8_encode(int codepoint, char* out);
|
|
|
|
|
#endif
|