diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-04 21:03:31 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-10-05 13:42:46 -0700 |
commit | 70214054e84b920ca3bea5119bd5d1456c809054 (patch) | |
tree | 0a9383d460c8988f788f4ef7adcd567526b35a75 /src/strings/zstring.cpp | |
parent | caae1e38d0d239f4f7088a64526fe1d2f6587999 (diff) | |
download | tmwa-70214054e84b920ca3bea5119bd5d1456c809054.tar.gz tmwa-70214054e84b920ca3bea5119bd5d1456c809054.tar.bz2 tmwa-70214054e84b920ca3bea5119bd5d1456c809054.tar.xz tmwa-70214054e84b920ca3bea5119bd5d1456c809054.zip |
Remove owning slices
They were hardly ever used, hid errors, and were obsoleted by baseful x'es.
Diffstat (limited to 'src/strings/zstring.cpp')
-rw-r--r-- | src/strings/zstring.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/strings/zstring.cpp b/src/strings/zstring.cpp index 3b86b0e..0de836c 100644 --- a/src/strings/zstring.cpp +++ b/src/strings/zstring.cpp @@ -56,25 +56,6 @@ namespace strings return &*begin(); } - ZS ZS::oslice_t(size_t o) const - { return ZS(really_construct_from_a_pointer, &begin()[o], base()); } - XS ZS::oslice_h(size_t o) const - { return XS(&*begin(), &begin()[o], base()); } - ZS ZS::orslice_t(size_t no) const - { return ZS(really_construct_from_a_pointer, &end()[-no], base()); } - XS ZS::orslice_h(size_t no) const - { return XS(&*begin(), &end()[-no], base()); } - ZS ZS::oislice_t(iterator it) const - { return ZS(really_construct_from_a_pointer, &*it, base()); } - XS ZS::oislice_h(iterator it) const - { return XS(&*begin(), &*it, base()); } - XS ZS::olslice(size_t o, size_t l) const - { return XS(&begin()[o], &begin()[o + l], base()); } - XS ZS::opslice(size_t b, size_t e) const - { return XS(&begin()[b], &begin()[e], base()); } - XS ZS::oislice(iterator b, iterator e) const - { return XS(&*b, &*e, base()); } - const char *decay_for_printf(const ZString& zs) { return zs.c_str(); |