libcbor 0.12.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
Loading...
Searching...
No Matches
unicode.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com>
3 *
4 * libcbor is free software; you can redistribute it and/or modify
5 * it under the terms of the MIT license. See LICENSE for details.
6 */
7
8#ifndef LIBCBOR_UNICODE_H
9#define LIBCBOR_UNICODE_H
10
11#include "cbor/common.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
18
24
26size_t _cbor_unicode_codepoint_count(cbor_data source, size_t source_length,
27 struct _cbor_unicode_status* status);
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif // LIBCBOR_UNICODE_H
#define _CBOR_NODISCARD
Definition common.h:93
const unsigned char * cbor_data
Definition data.h:20
Signals unicode validation error and possibly its location.
Definition unicode.h:20
enum _cbor_unicode_status_error status
Definition unicode.h:21
_cbor_unicode_status_error
Definition unicode.h:17
@ _CBOR_UNICODE_BADCP
Definition unicode.h:17
@ _CBOR_UNICODE_OK
Definition unicode.h:17
size_t _cbor_unicode_codepoint_count(cbor_data source, size_t source_length, struct _cbor_unicode_status *status)
Definition unicode.c:69