summaryrefslogtreecommitdiff
path: root/src/strings/sstring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/sstring.cpp')
-rw-r--r--src/strings/sstring.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/strings/sstring.cpp b/src/strings/sstring.cpp
index 76f0994..0500129 100644
--- a/src/strings/sstring.cpp
+++ b/src/strings/sstring.cpp
@@ -18,12 +18,18 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
+#include "rstring.hpp"
+#include "astring.hpp"
#include "tstring.hpp"
#include "zstring.hpp"
#include "xstring.hpp"
+#include "literal.hpp"
#include "../poison.hpp"
+
+namespace tmwa
+{
namespace strings
{
SString::SString()
@@ -54,6 +60,10 @@ namespace strings
else
*this = RString(x);
}
+ SString::SString(const LString& l)
+ {
+ *this = XString(l);
+ }
SString::SString(RString r, size_t b, size_t e)
: _s(std::move(r)), _b(b), _e(e)
@@ -95,3 +105,4 @@ namespace strings
return &_s;
}
} // namespace strings
+} // namespace tmwa