diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-08 15:09:25 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-08 16:18:22 -0800 |
commit | 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 (patch) | |
tree | 510ef3e0ad46ecf1f2bee1fa42f26e6377b51686 /src/strings/zstring.cpp | |
parent | 7a15a3efe85837d52d950cc9f895eadcc9eb6be1 (diff) | |
download | tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.gz tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.bz2 tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.xz tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.zip |
Implement AString
Diffstat (limited to 'src/strings/zstring.cpp')
-rw-r--r-- | src/strings/zstring.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/strings/zstring.cpp b/src/strings/zstring.cpp index 0de836c..bfc0c96 100644 --- a/src/strings/zstring.cpp +++ b/src/strings/zstring.cpp @@ -26,16 +26,19 @@ namespace strings { *this = ZString(""); } - ZString::ZString(const FString& s) + ZString::ZString(const RString& s) + : _b(&*s.begin()), _e(&*s.end()), _base(s.base()) + {} + ZString::ZString(const AString& s) : _b(&*s.begin()), _e(&*s.end()), _base(s.base()) {} ZString::ZString(const TString& s) : _b(&*s.begin()), _e(&*s.end()), _base(s.base()) {} - ZString::ZString(const char *b, const char *e, const FString *base_) + ZString::ZString(const char *b, const char *e, const RString *base_) : _b(b), _e(e), _base(base_) {} - ZString::ZString(decltype(really_construct_from_a_pointer), const char *s, const FString *base_) + ZString::ZString(decltype(really_construct_from_a_pointer), const char *s, const RString *base_) : _b(s), _e(s + strlen(s)), _base(base_) {} @@ -47,7 +50,7 @@ namespace strings { return _e; } - const FString *ZString::base() const + const RString *ZString::base() const { return _base; } |