str/cexpr: Add a function to make a constexpr generated string
This allows the user to generate an arbitrary length string at compile
time and convert it automatically to an std::array that is embedded in
the program for zero overhead runtime strings.
Change-Id: Ib6c2dd20cac53bb55e7a32e2fca194bdf0e06211
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/meson.build b/src/meson.build
index 2a08ac5..7c4dabf 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -51,6 +51,7 @@
'raw.cpp',
'signal.cpp',
'str/cat.cpp',
+ 'str/cexpr.cpp',
'util/cexec.cpp',
'zstring.cpp',
'zstring_view.cpp',
diff --git a/src/str/cexpr.cpp b/src/str/cexpr.cpp
new file mode 100644
index 0000000..b672808
--- /dev/null
+++ b/src/str/cexpr.cpp
@@ -0,0 +1 @@
+#include <stdplus/str/cexpr.hpp>