diff options
author | David Tolnay <dtolnay@gmail.com> | 2015-08-23 20:36:11 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-08-23 20:36:11 -0700 |
commit | 0c93eb3379241dc4775718a9d39f54a6c4de20d6 (patch) | |
tree | 67bb5510adb707d54c6f72b51b0718578a2caf5c /src/jv_unicode.h | |
parent | 891f28ef5e406a8d2156ad88d0244ab03fe490eb (diff) |
Move source files to src/
Diffstat (limited to 'src/jv_unicode.h')
-rw-r--r-- | src/jv_unicode.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jv_unicode.h b/src/jv_unicode.h new file mode 100644 index 00000000..579c910e --- /dev/null +++ b/src/jv_unicode.h @@ -0,0 +1,11 @@ +#ifndef JV_UNICODE_H +#define JV_UNICODE_H + +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); +#endif |