aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-23 09:16:38 +0000
committerDavid Robillard <d@drobilla.net>2011-01-23 09:16:38 +0000
commitebcef72577398fa10a6ad6545317f704bcf9a1c4 (patch)
treecb6ada04b2a4c4eefa1fa86c6b8a854c7fc7488d /src/uri.c
parent5de15ccf0a0216e5aadd93ab9095bf15279bfb7c (diff)
downloadserd-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.c23
1 files changed, 1 insertions, 22 deletions
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 <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)