ScEncodingArray.h
Go to the documentation of this file.
1 
10 #ifndef SC_ENCODING_ARRAY_H_
11 #define SC_ENCODING_ARRAY_H_
12 
13 #include <Scandit/ScConfig.h>
14 
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
18 
26 typedef struct {
28  const char * encoding;
29  uint32_t start;
30  uint32_t end;
33 
41 typedef struct {
44  uint32_t size;
47 
58 SC_EXPORT uint32_t
60 
72 SC_EXPORT ScEncodingRange
74 
83 SC_EXPORT void
85 
86 #if defined(__cplusplus)
87 }
88 #endif
89 
90 #endif // SC_BYTE_ARRAY_H_
void sc_encoding_array_free(ScEncodingArray array)
Frees the data of the encoding array.
ScEncodingRange sc_encoding_array_get_item_at(ScEncodingArray array, uint32_t i)
Access an encoding range.
Character encoding of a range of bytes.
Definition: ScEncodingArray.h:27
uint32_t sc_encoding_array_get_size(ScEncodingArray array)
Get the number of elements in the array.
uint32_t start
start index in the data
Definition: ScEncodingArray.h:29
uint32_t end
index after the last element in the data
Definition: ScEncodingArray.h:30
ScEncodingRange * ranges
array of ranges
Definition: ScEncodingArray.h:43
Common definitions used throughout the ScanditSDK API.
An array of encoding ranges.
Definition: ScEncodingArray.h:42
const char * encoding
charset encoding name as defined by IANA (http://www.iana.org/assignments/character-sets/character-se...
Definition: ScEncodingArray.h:28
uint32_t size
number of elements in the array
Definition: ScEncodingArray.h:44