summaryrefslogtreecommitdiff
path: root/src/common/string.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-14 10:24:36 +0100
committerHampusM <hampus@hampusmat.com>2022-03-14 10:24:36 +0100
commita119e6ca70ffab14f0a70908fa3eeb83b41bb5ab (patch)
tree51b72774694f5e1aac0bb17fc1a5e528dbad9b44 /src/common/string.hpp
parent6b5754655f78a7f93b756ff902ce9fd80d9dc4ec (diff)
refactor: rename std to common
Diffstat (limited to 'src/common/string.hpp')
-rw-r--r--src/common/string.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/common/string.hpp b/src/common/string.hpp
new file mode 100644
index 0000000..2641457
--- /dev/null
+++ b/src/common/string.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+namespace common
+{
+
+class String
+{
+public:
+ explicit String(char *c_str);
+ explicit String(unsigned int size);
+ String(const String &smart_str);
+ String(String &&smart_str) noexcept;
+
+ String &operator=(const String &smart_str);
+
+ String &operator=(String &&smart_str) noexcept;
+
+ ~String();
+
+ explicit operator char *() const;
+
+ char *c_str = nullptr;
+};
+
+} // namespace common