diff options
author | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2014-10-20 18:43:38 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2014-10-20 18:43:38 +0200 |
commit | c3ccf5e3e6737f81863b085289fd830e732b41f9 (patch) | |
tree | 1818bff2d8c4323edd4b65a419b1a6b76932c2c9 /src/UriCompare.c | |
parent | 886e5076c8e81fd0cdfe82dbf4a80d19e778d594 (diff) |
Imported Upstream version 0.8.1upstream/0.8.1
Diffstat (limited to 'src/UriCompare.c')
-rw-r--r-- | src/UriCompare.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/UriCompare.c b/src/UriCompare.c index 81c53ca..6896f64 100644 --- a/src/UriCompare.c +++ b/src/UriCompare.c @@ -69,33 +69,6 @@ -static int URI_FUNC(CompareRange)(const URI_TYPE(TextRange) * a, - const URI_TYPE(TextRange) * b); - - - -/* Compares two text ranges for equal text content */ -static URI_INLINE int URI_FUNC(CompareRange)(const URI_TYPE(TextRange) * a, - const URI_TYPE(TextRange) * b) { - int diff; - - /* NOTE: Both NULL means equal! */ - if ((a == NULL) || (b == NULL)) { - return ((a == NULL) && (b == NULL)) ? URI_TRUE : URI_FALSE; - } - - diff = ((int)(a->afterLast - a->first) - (int)(b->afterLast - b->first)); - if (diff > 0) { - return 1; - } else if (diff < 0) { - return -1; - } - - return URI_STRNCMP(a->first, b->first, (a->afterLast - a->first)); -} - - - UriBool URI_FUNC(EqualsUri)(const URI_TYPE(Uri) * a, const URI_TYPE(Uri) * b) { /* NOTE: Both NULL means equal! */ |