aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/print.hh
diff options
context:
space:
mode:
authorRebecca Turner <rbt@sent.as>2024-03-28 16:26:42 -0700
committerRebecca Turner <rbt@sent.as>2024-03-29 16:26:29 -0700
commita5a25894c152848d1a57f97b2ef5542ddf6cdb9d (patch)
treeea623d3e50f133b6f1d651847eef67e9172a3218 /src/libexpr/print.hh
parent5a54b0a20c80356de5098694353f506e73fb883f (diff)
Move `escapeString` to its own file
Change-Id: Ie5c954ec73c46c9d3c679ef99a83a29cc7a08352
Diffstat (limited to 'src/libexpr/print.hh')
-rw-r--r--src/libexpr/print.hh17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/libexpr/print.hh b/src/libexpr/print.hh
index 94cb11ca7..42826d94d 100644
--- a/src/libexpr/print.hh
+++ b/src/libexpr/print.hh
@@ -11,28 +11,13 @@
#include "fmt.hh"
#include "print-options.hh"
+#include "print-elided.hh"
namespace nix {
class EvalState;
struct Value;
-/**
- * Print a string as a Nix string literal.
- *
- * Quotes and fairly minimal escaping are added.
- *
- * @param o The output stream to print to
- * @param s The logical string
- */
-std::ostream & printLiteralString(std::ostream & o, std::string_view s);
-inline std::ostream & printLiteralString(std::ostream & o, const char * s) {
- return printLiteralString(o, std::string_view(s));
-}
-inline std::ostream & printLiteralString(std::ostream & o, const std::string & s) {
- return printLiteralString(o, std::string_view(s));
-}
-
/** Print `true` or `false`. */
std::ostream & printLiteralBool(std::ostream & o, bool b);