From cc8114f39463d338030fa48025d7fa27d5df981b Mon Sep 17 00:00:00 2001 From: couriersud Date: Sun, 29 Sep 2019 00:31:30 +0200 Subject: netlist: less cpp - more headers (nw) - move more code in headers - delete some cpp files. --- src/lib/netlist/plib/pstring.cpp | 44 ---------------------------------------- 1 file changed, 44 deletions(-) (limited to 'src/lib/netlist/plib/pstring.cpp') diff --git a/src/lib/netlist/plib/pstring.cpp b/src/lib/netlist/plib/pstring.cpp index c304f11d1fd..2eedc6b0371 100644 --- a/src/lib/netlist/plib/pstring.cpp +++ b/src/lib/netlist/plib/pstring.cpp @@ -57,50 +57,6 @@ pstring_t pstring_t::substr(size_type start, size_type nlen) const return ret; } -template -typename pstring_t::size_type pstring_t::find_first_not_of(const pstring_t &no) const -{ - size_type pos = 0; - for (auto it = begin(); it != end(); ++it, ++pos) - { - bool f = true; - for (code_t const jt : no) - { - if (*it == jt) - { - f = false; - break; - } - } - if (f) - return pos; - } - return npos; -} - -template -typename pstring_t::size_type pstring_t::find_last_not_of(const pstring_t &no) const -{ - /* FIXME: reverse iterator */ - size_type last_found = npos; - size_type pos = 0; - for (auto it = begin(); it != end(); ++it, ++pos) - { - bool f = true; - for (code_t const jt : no) - { - if (*it == jt) - { - f = false; - break; - } - } - if (f) - last_found = pos; - } - return last_found; -} - template typename pstring_t::size_type pstring_t::find(const pstring_t &search, size_type start) const { -- cgit v1.2.3-70-g09d2