LMMS
Loading...
Searching...
No Matches
node.c File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lilv_internal.h"

Functions

static void lilv_node_set_numerics_from_string (LilvNode *val)
LilvNodelilv_node_new (LilvWorld *world, LilvNodeType type, const char *str)
LilvNodelilv_node_new_from_node (LilvWorld *world, const SordNode *node)
LILV_API LilvNodelilv_new_uri (LilvWorld *world, const char *uri)
LILV_API LilvNodelilv_new_file_uri (LilvWorld *world, const char *host, const char *path)
LILV_API LilvNodelilv_new_string (LilvWorld *world, const char *str)
LILV_API LilvNodelilv_new_int (LilvWorld *world, int val)
LILV_API LilvNodelilv_new_float (LilvWorld *world, float val)
LILV_API LilvNodelilv_new_bool (LilvWorld *world, bool val)
LILV_API LilvNodelilv_node_duplicate (const LilvNode *val)
LILV_API void lilv_node_free (LilvNode *val)
LILV_API bool lilv_node_equals (const LilvNode *value, const LilvNode *other)
LILV_API char * lilv_node_get_turtle_token (const LilvNode *value)
LILV_API bool lilv_node_is_uri (const LilvNode *value)
LILV_API const char * lilv_node_as_uri (const LilvNode *value)
LILV_API bool lilv_node_is_blank (const LilvNode *value)
LILV_API const char * lilv_node_as_blank (const LilvNode *value)
LILV_API bool lilv_node_is_literal (const LilvNode *value)
LILV_API bool lilv_node_is_string (const LilvNode *value)
LILV_API const char * lilv_node_as_string (const LilvNode *value)
LILV_API bool lilv_node_is_int (const LilvNode *value)
LILV_API int lilv_node_as_int (const LilvNode *value)
LILV_API bool lilv_node_is_float (const LilvNode *value)
LILV_API float lilv_node_as_float (const LilvNode *value)
LILV_API bool lilv_node_is_bool (const LilvNode *value)
LILV_API bool lilv_node_as_bool (const LilvNode *value)
LILV_API char * lilv_node_get_path (const LilvNode *value, char **hostname)

Function Documentation

◆ lilv_node_new()

LilvNode * lilv_node_new ( LilvWorld * world,
LilvNodeType type,
const char * str )

Note that if type is numeric or boolean, the returned value is corrupt until lilv_node_set_numerics_from_string is called. It is not automatically called from here to avoid overhead and imprecision when the exact string value is known.

◆ lilv_node_new_from_node()

LilvNode * lilv_node_new_from_node ( LilvWorld * world,
const SordNode * node )

Create a new LilvNode from node, or return NULL if impossible

◆ lilv_node_set_numerics_from_string()

void lilv_node_set_numerics_from_string ( LilvNode * val)
static