diff options
author | 2017-02-15 22:06:49 +0100 | |
---|---|---|
committer | 2017-02-16 20:31:42 +0100 | |
commit | 32aca6c39882cd9741a72cda811757bc0abc95ed (patch) | |
tree | 43311c53af25fc6a9c314a99cdf5726a1d32a98e /src/lib/netlist/plib/pstring.h | |
parent | 154db6a732b252fa6cfce17d664bdb254e759e78 (diff) |
Move from <cstring> to std::copy and friends. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pstring.h')
-rw-r--r-- | src/lib/netlist/plib/pstring.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/pstring.h b/src/lib/netlist/plib/pstring.h index 80a8fc4e78e..664b31c8761 100644 --- a/src/lib/netlist/plib/pstring.h +++ b/src/lib/netlist/plib/pstring.h @@ -31,6 +31,7 @@ struct pstr_t std::size_t len() const { return m_len; } void inc() { m_ref_count++; } bool dec_and_check() { --m_ref_count; return m_ref_count == 0; } + void copy_from(char *p, std::size_t n) { std::copy(p, p + n, str()); } private: int m_ref_count; std::size_t m_len; @@ -185,8 +186,6 @@ private: int pcmp(const pstring_t &right) const; - int pcmp(const mem_t *right) const; - void pcopy(const mem_t *from, std::size_t size); void pcopy(const mem_t *from); |