libcbor
0.5.0
libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.
src
cbor
internal
unicode.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014-2017 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
14
extern
"C"
{
15
#endif
16
17
enum
_cbor_unicode_status_error
{
18
_CBOR_UNICODE_OK
,
19
_CBOR_UNICODE_BADCP
20
};
21
23
struct
_cbor_unicode_status
{
24
enum
_cbor_unicode_status_error
status
;
25
size_t
location
;
26
};
27
28
size_t
_cbor_unicode_codepoint_count
(
cbor_data
source,
size_t
source_length,
struct
_cbor_unicode_status
*
status
);
29
30
#ifdef __cplusplus
31
}
32
#endif
33
34
#endif //LIBCBOR_UNICODE_H
_cbor_unicode_status::status
enum _cbor_unicode_status_error status
Definition:
unicode.h:24
_cbor_unicode_status
Signals unicode validation error and possibly its location.
Definition:
unicode.h:23
_cbor_unicode_status::location
size_t location
Definition:
unicode.h:25
cbor_data
const unsigned char * cbor_data
Definition:
data.h:20
_cbor_unicode_codepoint_count
size_t _cbor_unicode_codepoint_count(cbor_data source, size_t source_length, struct _cbor_unicode_status *status)
Definition:
unicode.c:43
_cbor_unicode_status_error
_cbor_unicode_status_error
Definition:
unicode.h:17
common.h
_CBOR_UNICODE_BADCP
Definition:
unicode.h:19
_CBOR_UNICODE_OK
Definition:
unicode.h:18
Generated on Mon Feb 6 2017 00:26:19 for libcbor by
1.8.12