From ebcef72577398fa10a6ad6545317f704bcf9a1c4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Jan 2011 09:16:38 +0000 Subject: 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 --- src/uri.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/uri.c') diff --git a/src/uri.c b/src/uri.c index c738724e..5b2e4423 100644 --- a/src/uri.c +++ b/src/uri.c @@ -19,31 +19,10 @@ #include #include -#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) -- cgit v1.2.1