diff options
author | 2019-09-29 00:31:30 +0200 | |
---|---|---|
committer | 2019-09-29 00:31:30 +0200 | |
commit | cc8114f39463d338030fa48025d7fa27d5df981b (patch) | |
tree | 4d7c21676c53fb206f72c76d8d272419760889ca /src/lib/netlist/plib/pstring.cpp | |
parent | 5ad9faa783b27c2744dee5f182fc94a885d47e34 (diff) |
netlist: less cpp - more headers (nw)
- move more code in headers - delete some cpp files.
Diffstat (limited to 'src/lib/netlist/plib/pstring.cpp')
-rw-r--r-- | src/lib/netlist/plib/pstring.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
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 @@ -58,50 +58,6 @@ pstring_t<F> pstring_t<F>::substr(size_type start, size_type nlen) const } template<typename F> -typename pstring_t<F>::size_type pstring_t<F>::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 F> -typename pstring_t<F>::size_type pstring_t<F>::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 F> typename pstring_t<F>::size_type pstring_t<F>::find(const pstring_t &search, size_type start) const { auto istart = std::next(begin(), static_cast<difference_type>(start)); |