summaryrefslogtreecommitdiff
path: root/src/strings/xstring.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-02-08 15:09:25 -0800
committerBen Longbons <b.r.longbons@gmail.com>2014-02-08 16:18:22 -0800
commit730e5dde39333cb2f63c72a7d7152bee5c4dbb05 (patch)
tree510ef3e0ad46ecf1f2bee1fa42f26e6377b51686 /src/strings/xstring.hpp
parent7a15a3efe85837d52d950cc9f895eadcc9eb6be1 (diff)
downloadtmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.gz
tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.bz2
tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.tar.xz
tmwa-730e5dde39333cb2f63c72a7d7152bee5c4dbb05.zip
Implement AString
Diffstat (limited to 'src/strings/xstring.hpp')
-rw-r--r--src/strings/xstring.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/strings/xstring.hpp b/src/strings/xstring.hpp
index e96ef8a..2766810 100644
--- a/src/strings/xstring.hpp
+++ b/src/strings/xstring.hpp
@@ -25,17 +25,18 @@ namespace strings
{
/// A non-owning string that is not guaranteed to be NUL-terminated.
/// This should be only used as a parameter.
- class XString : public _crtp_string<XString, FString, XPair>
+ class XString : public _crtp_string<XString, AString, XPair>
{
iterator _b, _e;
// optional
- const FString *_base;
+ const RString *_base;
public:
// do I really want this?
XString();
XString(std::nullptr_t) = delete;
// no MString
- XString(const FString& s);
+ XString(const RString& s);
+ XString(const AString& s);
XString(const TString& s);
XString(const SString& s);
XString(const ZString& s);
@@ -46,13 +47,13 @@ namespace strings
template<size_t n>
XString(const char (&s)[n]);
// mostly internal
- XString(const char *b, const char *e, const FString *base_);
- XString(decltype(really_construct_from_a_pointer) e, const char *s, const FString *base_);
+ XString(const char *b, const char *e, const RString *base_);
+ XString(decltype(really_construct_from_a_pointer) e, const char *s, const RString *base_);
XString(XPair p);
iterator begin() const;
iterator end() const;
- const FString *base() const;
+ const RString *base() const;
};
} // namespace strings