/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
3party/jansson/src/utf.h
36 строк
808 B
LaGrunge
[3party] Update Jansson 2.4 to 2.12
14 июн 2019, 12:43
14 июн 2019, 12:43
8748e52
Код
Авторство
О чём код?
/* * Copyright (c) 2009-2016 Petri Lehtinen <petri@digip.org> * * Jansson is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #ifndef UTF_H #define UTF_H #ifdef HAVE_CONFIG_H #include <jansson_private_config.h> #endif #ifdef _WIN32 typedef int int32_t; #else /* !_WIN32 */ /* Assume a standard environment */ #include <inttypes.h> #endif /* _WIN32 */ #ifdef HAVE_STDINT_H #include <stdint.h> #endif int utf8_encode(int32_t codepoint, char *buffer, size_t *size); size_t utf8_check_first(char byte); size_t utf8_check_full(const char *buffer, size_t size, int32_t *codepoint); const char *utf8_iterate(const char *buffer, size_t size, int32_t *codepoint); int utf8_check_string(const char *string, size_t length); #endif