summaryrefslogtreecommitdiffstats
path: root/sord
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-04 05:23:31 +0000
committerDavid Robillard <d@drobilla.net>2011-02-04 05:23:31 +0000
commitedf40906a3988a4daace075fc714533a0e778814 (patch)
tree757f7e76af12d0b681ff5240bb95c011588ee950 /sord
parentdd0de65f32718cbf5647ba0c1a2b5692507cf6b3 (diff)
downloadsord-edf40906a3988a4daace075fc714533a0e778814.tar.gz
sord-edf40906a3988a4daace075fc714533a0e778814.tar.bz2
sord-edf40906a3988a4daace075fc714533a0e778814.zip
Use uint8_t for API char type for UTF-8 friendliness.
Fix literal languages. git-svn-id: http://svn.drobilla.net/sord/trunk@20 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'sord')
-rw-r--r--sord/sord.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sord/sord.h b/sord/sord.h
index 2d702a6..09fcc5a 100644
--- a/sord/sord.h
+++ b/sord/sord.h
@@ -160,24 +160,24 @@ sord_tuple_load(Sord sord,
*/
SORD_API
SordID
-sord_get_uri(Sord sord, bool create, const char* str);
+sord_get_uri(Sord sord, bool create, const uint8_t* str);
/** Find a URI, creating a new one if necessary iff @a create is true. */
SORD_API
SordID
-sord_get_uri_counted(Sord sord, bool create, const char* str, int str_len);
+sord_get_uri_counted(Sord sord, bool create, const uint8_t* str, int str_len);
/** Find a blank, creating a new one if necessary iff @a create is true
* Use sord_get_blank_counted instead if the length of @a str is known.
*/
SORD_API
SordID
-sord_get_blank(Sord sord, bool create, const char* str);
+sord_get_blank(Sord sord, bool create, const uint8_t* str);
/** Find a blank, creating a new one if necessary iff @a create is true. */
SORD_API
SordID
-sord_get_blank_counted(Sord sord, bool create, const char* str, int str_len);
+sord_get_blank_counted(Sord sord, bool create, const uint8_t* str, int str_len);
/** Find a literal, creating a new one if necessary iff @a create is true.
* Use sord_get_literal_counted instead if the length of @a str is known.
@@ -185,14 +185,14 @@ sord_get_blank_counted(Sord sord, bool create, const char* str, int str_len);
SORD_API
SordID
sord_get_literal(Sord sord, bool create, SordID type,
- const char* str, const char* lang);
+ const uint8_t* str, const char* lang);
/** Find a literal, creating a new one if necessary iff @a create is true. */
SORD_API
SordID
sord_get_literal_counted(Sord sord, bool create, SordID type,
- const char* str, int str_len,
- const char* lang, uint8_t lang_len);
+ const uint8_t* str, int str_len,
+ const char* lang, uint8_t lang_len);
/** @} */
@@ -208,11 +208,11 @@ sord_node_get_type(SordNode node);
/** Return the string value of a node. */
SORD_API
-const char*
+const uint8_t*
sord_node_get_string(SordNode node);
SORD_API
-const char*
+const uint8_t*
sord_node_get_string_counted(SordNode node, size_t* len);
/** Set an opaque user pointer on a node.