diff options
author | David Robillard <d@drobilla.net> | 2023-02-05 18:39:49 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 343124df71010055c2c1e6cdcadd13d23b2c013a (patch) | |
tree | 7c2de6a72021adaac89e9c4fa97e7cc5503e0657 /tools | |
parent | 530edb265fbbed20e6d3a6fd7a36461ff83d9b46 (diff) | |
download | serd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.gz serd-343124df71010055c2c1e6cdcadd13d23b2c013a.tar.bz2 serd-343124df71010055c2c1e6cdcadd13d23b2c013a.zip |
[WIP] Add support for URI hex escape decoding
Diffstat (limited to 'tools')
-rw-r--r-- | tools/console.c | 2 | ||||
-rw-r--r-- | tools/serd-pipe.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/console.c b/tools/console.c index 057656d5..661e7ab4 100644 --- a/tools/console.c +++ b/tools/console.c @@ -241,6 +241,7 @@ serd_set_input_option(const ZixStringView name, {"global", SERD_READ_GLOBAL}, {"generated", SERD_READ_GENERATED}, {"ordered", SERD_READ_ORDERED}, + {"decoded", SERD_READ_DECODED}, {NULL, SERD_READ_LAX}, }; @@ -293,6 +294,7 @@ serd_set_output_option(const ZixStringView name, static const OutputOption output_options[] = { {"ascii", SERD_WRITE_ASCII}, {"contextual", SERD_WRITE_CONTEXTUAL}, + {"escapes", SERD_WRITE_ESCAPES}, {"expanded", SERD_WRITE_EXPANDED}, {"lax", SERD_WRITE_LAX}, {"longhand", SERD_WRITE_LONGHAND}, diff --git a/tools/serd-pipe.c b/tools/serd-pipe.c index 06c8e55e..4fed5a1f 100644 --- a/tools/serd-pipe.c +++ b/tools/serd-pipe.c @@ -100,7 +100,7 @@ print_usage(const char* const name, const bool error) " -B BASE_URI Base URI or path for resolving relative references.\n" " -C Convert literals to canonical form.\n" " -I SYNTAX Input syntax turtle/ntriples/trig/nquads, or option\n" - " lax/variables/relative/global/generated.\n" + " lax/decoded/variables/relative/global/generated.\n" " -O SYNTAX Output syntax empty/turtle/ntriples/nquads, or option\n" " ascii/contextual/expanded/verbatim/terse/lax.\n" " -R ROOT_URI Keep relative URIs within ROOT_URI.\n" |