Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
|
Go to the documentation of this file.
51 #define BASE64_MASK 0xFF00
58 #define TYPE_MASK 0xFF
95 #define UTF_UNKNOWN 40
103 #define BASE64_CRLF 13
aint uiDataType
One of the encoding type identifiers, UTF_8, etc. If or'ed (|) with BASE64, the source data stream is...
void vConvConvert(void *vpCtx, conv_src *spSrc, conv_dst *spDst)
Decodes and encodes in a single functions call.
void * vpConvCtor(exception *spEx)
The data conversion object constructor.
uint8_t * ucpData
Pointer to the byte stream to decode,.
uint_fast32_t aint
The APG parser's unsigned integer type.
abool bBOM
[in] If true(BOM) prepend a Byte Order Mark, if false(NOBOM) no Byte Order Mark prepended.
aint uiDataType
[in] One of the encoding type identifiers, UTF_8, etc.
void vConvUseCodePoints(void *vpCtx, uint32_t *uipSrc, aint uiSrcLen)
Insert a stream of 32-bit Unicode code points as the intermediate data.
Defines the output data type, location, length and whether or not to preface with a Byte Order Mark (...
A structure to describe the type and location of a caught exception.
void vConvGetCodePoints(void *vpCtx, uint32_t *uipData, uint32_t *uipDataLen)
Access the intermediate 32-bit data following a call to vConvDecode() or vConvUseCodePoints().
aint uiDataLen
Number of bytes in the byte stream.
void vConvDecode(void *vpCtx, conv_src *spSrc)
Decode a source byte stream to 32-bit Unicode code points.
void vConvDtor(void *vpCtx)
Conversion object destructor.
void vConvEncode(void *vpCtx, conv_dst *spDst)
Encode the 32-bit Unicode code points to a byte stream.
aint uiDataLen
[out] Number of bytes in the byte stream.
uint8_t abool
abool is the APG bool type.
Defines the input data type, location and length.
void vConvConfigureBase64(void *vpCtx, aint uiLineLen, aint uiLineEnd)
Configures base64 output format.
uint8_t * ucpData
[out] Pointer to the output byte stream. Valid until another function call on the context handle.
APG Version 7.0 is licensed under the
2-Clause BSD License,
an Open Source Initiative Approved License.