about summary refs log tree commit diff
path: root/src/fix-ng/primops.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-02T16·31+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-02T16·31+0000
commitadf9a45469f55258446d383333aa2ca79cfb0536 (patch)
tree26fc7e4ac62f45385b78f468c1cbc96426c78d71 /src/fix-ng/primops.hh
parentc8268ca9917061466a3448028ea524d9842e1ac9 (diff)
* Primops: baseNameOf, toString.
Diffstat (limited to 'src/fix-ng/primops.hh')
-rw-r--r--src/fix-ng/primops.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fix-ng/primops.hh b/src/fix-ng/primops.hh
index 41b572c688..e48883b0bb 100644
--- a/src/fix-ng/primops.hh
+++ b/src/fix-ng/primops.hh
@@ -19,4 +19,13 @@ Expr primImport(EvalState & state, Expr arg);
 Expr primDerivation(EvalState & state, Expr args);
 
 
+/* Return the base name of the given string, i.e., everything
+   following the last slash. */
+Expr primBaseNameOf(EvalState & state, Expr arg);
+
+
+/* Convert the argument (which can be a path or a uri) to a string. */
+Expr primToString(EvalState & state, Expr arg);
+
+
 #endif /* !__PRIMOPS_H */