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/tstring.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/tstring.cpp')
-rw-r--r-- | src/strings/tstring.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/strings/tstring.cpp b/src/strings/tstring.cpp index 9decc61..2d13888 100644 --- a/src/strings/tstring.cpp +++ b/src/strings/tstring.cpp @@ -72,25 +72,6 @@ namespace strings return &*begin(); } - TS TS::oslice_t(size_t o) const - { return TS(_s, _o + o); } - SS TS::oslice_h(size_t o) const - { return SS(_s, _o, _o + o); } - TS TS::orslice_t(size_t no) const - { return TS(_s, _s.size() - no); } - SS TS::orslice_h(size_t no) const - { return SS(_s, _o, _s.size() - no); } - TS TS::oislice_t(iterator it) const - { return TS(_s, _o + it - begin()); } - SS TS::oislice_h(iterator it) const - { return SS(_s, _o, _o + it - begin()); } - SS TS::olslice(size_t o, size_t l) const - { return SS(_s, _o + o, _o + o + l); } - SS TS::opslice(size_t b, size_t e) const - { return SS(_s, _o + b, _o + e); } - SS TS::oislice(iterator b, iterator e) const - { return SS(_s, _o + b - begin(), _o + e - begin()); } - const char *decay_for_printf(const TString& ts) { return ts.c_str(); |