summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bindings/cxx/eina_cxx/eina_string_view.hh20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/bindings/cxx/eina_cxx/eina_string_view.hh b/src/bindings/cxx/eina_cxx/eina_string_view.hh
index cfa3ba0d85..265b7e1a75 100644
--- a/src/bindings/cxx/eina_cxx/eina_string_view.hh
+++ b/src/bindings/cxx/eina_cxx/eina_string_view.hh
@@ -250,30 +250,14 @@ public:
250 return to_string(); 250 return to_string();
251 } 251 }
252 252
253 CharT const* c_str() const noexcept { return data(); }
254
253 template<typename Allocator> 255 template<typename Allocator>
254 operator std::basic_string<CharT, Traits, Allocator>() const 256 operator std::basic_string<CharT, Traits, Allocator>() const
255 { 257 {
256 return std::basic_string<CharT, Traits, Allocator>(_str, _len); 258 return std::basic_string<CharT, Traits, Allocator>(_str, _len);
257 } 259 }
258 260
259 // Modifiers:
260// void clear() noexcept { _len = 0; }
261//
262// void remove_prefix(size_type n) noexcept
263// {
264// if (n > _len)
265// n = _len;
266// _str += n;
267// _len -= n;
268// }
269//
270// void remove_suffix(size_type n) noexcept
271// {
272// if (n > _len)
273// n = _len;
274// _len -= n;
275// }
276
277 void swap(basic_string_view<CharT, Traits>& s) 261 void swap(basic_string_view<CharT, Traits>& s)
278 { 262 {
279 std::swap(_str, s._str); 263 std::swap(_str, s._str);