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/sstring.hpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/strings/sstring.hpp') diff --git a/src/strings/sstring.hpp b/src/strings/sstring.hpp index 12fb96d..1836d69 100644 --- a/src/strings/sstring.hpp +++ b/src/strings/sstring.hpp @@ -1,6 +1,6 @@ #ifndef TMWA_STRINGS_SSTRING_HPP #define TMWA_STRINGS_SSTRING_HPP -// strings/sstring.hpp - A full slice of an FString. +// strings/sstring.hpp - A full slice of an RString. // // Copyright © 2013 Ben Longbons // @@ -20,19 +20,20 @@ // along with this program. If not, see . # include "base.hpp" -# include "fstring.hpp" +# include "rstring.hpp" namespace strings { - /// An owning string that represents a arbitrary slice of an FString. + /// An owning string that represents a arbitrary slice of an RString. /// Not guaranteed to be NUL-terminated. class SString : public _crtp_string { - FString _s; + RString _s; size_t _b, _e; public: SString(); - SString(FString f); + SString(RString f); + SString(AString f); SString(TString t); //SString(const SString&); SString(const ZString&); @@ -45,12 +46,13 @@ namespace strings SString(const char (&s)[n]); //template //SString(It b, It e) : _s(b, e), _b(0), _e(_s.size()) {} - SString(FString f, size_t b, size_t e); + SString(RString f, size_t b, size_t e); + SString(AString f, size_t b, size_t e); SString(XPair p); iterator begin() const; iterator end() const; - const FString *base() const; + const RString *base() const; }; } // namespace strings -- cgit v1.2.3-70-g09d2