|
Volksdata 1.0b7
RDF library
|

Data Structures | |
| struct | VOLK_TTLParserState |
| Parser state. More... | |
Macros | |
| #define | CHUNK_SIZE 4096 |
| #define | CODEC_TBL |
Enumerations | |
| enum | VOLK_CodecType { CODEC_TBL } |
| Codec types. All prefixed with VOLK_CODEC_. More... | |
Functions | |
| uint8_t * | uint8_dup (const uint8_t *str) |
| Parse error information. | |
| uint8_t * | uint8_ndup (const uint8_t *str, size_t size) |
| strndup() for unsigned char. | |
| VOLK_rc | escape_lit (const char *in, char **out) |
| Add escape character (backslash) to illegal literal characters. | |
| char | unescape_char (const char c) |
| Unescape a single character. | |
| uint8_t * | unescape_unicode (const uint8_t *esc_str, size_t size) |
| Replace \uxxxx and \Uxxxxxxxx with Unicode bytes. | |
| char * | fmt_header (char *pfx) |
| Format an informational header. | |
| #define CHUNK_SIZE 4096 |
| #define CODEC_TBL |
| enum VOLK_CodecType |
|
inline |
|
inline |
| VOLK_rc escape_lit | ( | const char * | in, |
| char ** | out ) |
|
inline |
Unescape a single character.
Convert escaped special characters such as \t, \n, etc. into their corresponding code points.
Non-special characters are returned unchanged.
| [in] | c | Character to unescape. Note that this is the single character after \\endiskip. |
| uint8_t * unescape_unicode | ( | const uint8_t * | esc_str, |
| size_t | size ) |
| char * fmt_header | ( | char * | pfx | ) |
Format an informational header.
The information includes software version and current date. It is terminated by a newline + NUL and prefixed with the string specified in pfx. It is NOT prefixed by any comment characters.
| [in] | pfx | Prefix to add to the string. It may be a comment starter, such as # . |