diff options
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/Forge.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ingen/Forge.hpp b/ingen/Forge.hpp index 683c0041..b9d98a1d 100644 --- a/ingen/Forge.hpp +++ b/ingen/Forge.hpp @@ -37,6 +37,10 @@ public: std::string str(const Atom& atom, bool quoted=true); + bool is_uri(const Atom& atom) const { + return atom.type() == URI || atom.type() == URID; + } + Atom make() { return Atom(); } Atom make(int32_t v) { return Atom(sizeof(v), Int, &v); } Atom make(float v) { return Atom(sizeof(v), Float, &v); } |