From adf9a45469f55258446d383333aa2ca79cfb0536 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 2 Nov 2003 16:31:35 +0000 Subject: * Primops: baseNameOf, toString. --- src/fix-ng/primops.hh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/fix-ng/primops.hh') diff --git a/src/fix-ng/primops.hh b/src/fix-ng/primops.hh index 41b572c68..e48883b0b 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 */ -- cgit v1.2.3