summaryrefslogtreecommitdiff
path: root/src/str_buffer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/str_buffer.hh')
-rw-r--r--src/str_buffer.hh14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/str_buffer.hh b/src/str_buffer.hh
new file mode 100644
index 0000000..b791918
--- /dev/null
+++ b/src/str_buffer.hh
@@ -0,0 +1,14 @@
+#ifndef STR_BUFFER_HH
+#define STR_BUFFER_HH
+
+#include "buffer.hh"
+
+#include <memory>
+#include <string>
+#include <string_view>
+
+std::unique_ptr<RoBuffer> make_strbuffer(std::string content);
+std::unique_ptr<RoBuffer> make_strbuffer(std::string_view content);
+std::unique_ptr<Buffer> make_strbuffer(std::shared_ptr<std::string> content);
+
+#endif // STR_BUFFER_HH