summaryrefslogtreecommitdiffstats
path: root/src/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.c')
-rw-r--r--src/value.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/value.c b/src/value.c
index 1797e2b..07fd630 100644
--- a/src/value.c
+++ b/src/value.c
@@ -27,7 +27,6 @@
#include "slv2/value.h"
#include "slv2_internal.h"
-
/* private */
static void
slv2_value_set_numerics_from_string(SLV2Value val)
@@ -60,7 +59,6 @@ slv2_value_set_numerics_from_string(SLV2Value val)
}
}
-
/* private
* Note that if type is numeric, slv2_value_set_numerics_from_string MUST be
* called or the returned value will be corrupt! It is not automatically
@@ -91,7 +89,6 @@ slv2_value_new(SLV2World world, SLV2ValueType type, const char* str)
return val;
}
-
/** Create a new SLV2Value from @a node, or return NULL if impossible */
SLV2Value
slv2_value_new_from_node(SLV2World world, SordNode node)
@@ -138,21 +135,18 @@ slv2_value_new_from_node(SLV2World world, SordNode node)
return result;
}
-
SLV2Value
slv2_value_new_uri(SLV2World world, const char* uri)
{
return slv2_value_new(world, SLV2_VALUE_URI, uri);
}
-
SLV2Value
slv2_value_new_string(SLV2World world, const char* str)
{
return slv2_value_new(world, SLV2_VALUE_STRING, str);
}
-
SLV2Value
slv2_value_new_int(SLV2World world, int val)
{
@@ -163,7 +157,6 @@ slv2_value_new_int(SLV2World world, int val)
return ret;
}
-
SLV2Value
slv2_value_new_float(SLV2World world, float val)
{
@@ -174,7 +167,6 @@ slv2_value_new_float(SLV2World world, float val)
return ret;
}
-
SLV2Value
slv2_value_duplicate(SLV2Value val)
{
@@ -195,7 +187,6 @@ slv2_value_duplicate(SLV2Value val)
return result;
}
-
void
slv2_value_free(SLV2Value val)
{
@@ -209,7 +200,6 @@ slv2_value_free(SLV2Value val)
}
}
-
bool
slv2_value_equals(SLV2Value value, SLV2Value other)
{
@@ -236,7 +226,6 @@ slv2_value_equals(SLV2Value value, SLV2Value other)
return false; /* shouldn't get here */
}
-
char*
slv2_value_get_turtle_token(SLV2Value value)
{
@@ -285,14 +274,12 @@ slv2_value_get_turtle_token(SLV2Value value)
return result;
}
-
bool
slv2_value_is_uri(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_URI);
}
-
const char*
slv2_value_as_uri(SLV2Value value)
{
@@ -300,7 +287,6 @@ slv2_value_as_uri(SLV2Value value)
return value->str_val;
}
-
SLV2Node
slv2_value_as_node(SLV2Value value)
{
@@ -308,14 +294,12 @@ slv2_value_as_node(SLV2Value value)
return value->val.uri_val;
}
-
bool
slv2_value_is_blank(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_BLANK);
}
-
const char*
slv2_value_as_blank(SLV2Value value)
{
@@ -323,7 +307,6 @@ slv2_value_as_blank(SLV2Value value)
return value->str_val;
}
-
bool
slv2_value_is_literal(SLV2Value value)
{
@@ -331,28 +314,24 @@ slv2_value_is_literal(SLV2Value value)
return (value && value->type != SLV2_VALUE_URI);
}
-
bool
slv2_value_is_string(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_STRING);
}
-
const char*
slv2_value_as_string(SLV2Value value)
{
return value->str_val;
}
-
bool
slv2_value_is_int(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_INT);
}
-
int
slv2_value_as_int(SLV2Value value)
{
@@ -361,14 +340,12 @@ slv2_value_as_int(SLV2Value value)
return value->val.int_val;
}
-
bool
slv2_value_is_float(SLV2Value value)
{
return (value && value->type == SLV2_VALUE_FLOAT);
}
-
float
slv2_value_as_float(SLV2Value value)
{