From 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 8 Feb 2014 15:09:25 -0800 Subject: Implement AString --- src/strings/xstring.hpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/strings/xstring.hpp') 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 + class XString : public _crtp_string { 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 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 -- cgit v1.2.3-60-g2f50