Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
codec.c File Reference
#include "volksdata/codec.h"
Include dependency graph for codec.c:

Go to the source code of this file.

Macros

#define LIT_ECHAR   "\t\b\n\r\f\"\'\\"
 List of characters to be escaped in serialized literals.

Functions

uint8_t * unescape_unicode (const uint8_t *esc_str, size_t size)
 Replace \uxxxx and \Uxxxxxxxx with Unicode bytes.
VOLK_rc escape_lit (const char *in, char **out_p)
 Add escape character (backslash) to illegal literal characters.
char * fmt_header (char *pfx)
 Format an informational header.
char escape_char (const char c)
char unescape_char (const char c)
 Unescape a single character.
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.

Macro Definition Documentation

◆ LIT_ECHAR

#define LIT_ECHAR   "\t\b\n\r\f\"\'\\"

List of characters to be escaped in serialized literals.

See also
https://www.w3.org/TR/n-triples/#grammar-production-ECHAR

Definition at line 8 of file codec.c.

Function Documentation

◆ escape_char()

char escape_char ( const char c)