diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-02T16·31+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-11-02T16·31+0000 |
commit | adf9a45469f55258446d383333aa2ca79cfb0536 (patch) | |
tree | 26fc7e4ac62f45385b78f468c1cbc96426c78d71 /src/fix-ng/primops.hh | |
parent | c8268ca9917061466a3448028ea524d9842e1ac9 (diff) |
* Primops: baseNameOf, toString.
Diffstat (limited to 'src/fix-ng/primops.hh')
-rw-r--r-- | src/fix-ng/primops.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fix-ng/primops.hh b/src/fix-ng/primops.hh index 41b572c688d9..e48883b0bb01 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 */ |