summaryrefslogtreecommitdiffstats
path: root/src/jv_unicode.h
blob: 0e5e9557f7fd0f86dc43018ff25ef96ceea07091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef JV_UNICODE_H
#define JV_UNICODE_H

const char* jvp_utf8_backtrack(const char* start, const char* min, int *missing_bytes);
const char* jvp_utf8_next(const char* in, const char* end, int* codepoint);
int jvp_utf8_is_valid(const char* in, const char* end);

int jvp_utf8_decode_length(char startchar);

int jvp_utf8_encode_length(int codepoint);
int jvp_utf8_encode(int codepoint, char* out);

int jvp_codepoint_is_whitespace(int c);
#endif