diff options
-rw-r--r-- | src/reader.c | 6 | ||||
-rw-r--r-- | src/writer.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/reader.c b/src/reader.c index c3c2e538..a17fac88 100644 --- a/src/reader.c +++ b/src/reader.c @@ -635,7 +635,7 @@ read_PN_CHARS(SerdReader* reader, Ref dest) if ((c & 0x80)) { // Multi-byte character return !read_utf8_character(reader, dest, eat_byte_safe(reader, c)); } - + if (is_alpha(c) || is_digit(c) || c == '_' || c == '-') { push_byte(reader, dest, eat_byte_safe(reader, c)); return true; @@ -656,7 +656,7 @@ read_PERCENT(SerdReader* reader, Ref dest) } return false; } - + static SerdStatus read_PLX(SerdReader* reader, Ref dest) { @@ -884,7 +884,7 @@ read_number(SerdReader* reader, Ref* dest, Ref* datatype, bool* ate_dot) *ate_dot = true; // Force caller to deal with stupid grammar return true; // Next byte is not a number character, done } - + push_byte(reader, ref, '.'); read_0_9(reader, ref, false); } diff --git a/src/writer.c b/src/writer.c index 4eb39493..60be18f9 100644 --- a/src/writer.c +++ b/src/writer.c @@ -177,7 +177,7 @@ parse_utf8_char(SerdWriter* writer, const uint8_t* utf8, size_t* size) size_t i = 0; uint8_t in = utf8[i++]; - + #define READ_BYTE() \ in = utf8[i++] & 0x3F; \ c = (c << 6) | in; @@ -237,7 +237,7 @@ uri_must_escape(const uint8_t c) return !in_range(c, 0x20, 0x7E); } } - + static size_t write_uri(SerdWriter* writer, const uint8_t* utf8, size_t n_bytes) { |