diff options
author | David Robillard <d@drobilla.net> | 2011-01-23 09:16:38 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-23 09:16:38 +0000 |
commit | ebcef72577398fa10a6ad6545317f704bcf9a1c4 (patch) | |
tree | cb6ada04b2a4c4eefa1fa86c6b8a854c7fc7488d /src/uri.c | |
parent | 5de15ccf0a0216e5aadd93ab9095bf15279bfb7c (diff) | |
download | serd-ebcef72577398fa10a6ad6545317f704bcf9a1c4.tar.gz serd-ebcef72577398fa10a6ad6545317f704bcf9a1c4.tar.bz2 serd-ebcef72577398fa10a6ad6545317f704bcf9a1c4.zip |
Rearrange code, put common internal stuff in serd_internal.h.
git-svn-id: http://svn.drobilla.net/serd/trunk@46 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/uri.c')
-rw-r--r-- | src/uri.c | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -19,31 +19,10 @@ #include <stdlib.h> #include <string.h> -#include "serd/serd.h" +#include "serd_internal.h" // #define URI_DEBUG 1 -/** Return true if @a c lies within [min...max] (inclusive) */ -static inline bool -in_range(const char c, const char min, const char max) -{ - return (c >= min && c <= max); -} - -/** RFC2234: ALPHA := %x41-5A / %x61-7A ; A-Z / a-z */ -static inline bool -is_alpha(const uint8_t c) -{ - return in_range(c, 'A', 'Z') || in_range(c, 'a', 'z'); -} - -/** RFC2234: DIGIT ::= %x30-39 ; 0-9 */ -static inline bool -is_digit(const uint8_t c) -{ - return in_range(c, '0', '9'); -} - SERD_API bool serd_uri_string_has_scheme(const uint8_t* utf8) |