summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pstream.h
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-08-05 21:43:54 +0200
committer couriersud <couriersud@gmx.org>2020-08-06 09:44:59 +0200
commitd524688df1535b2825773cbdf430bf5377aff189 (patch)
treee7494fd21962fc50ee27e296c9d9f3104301b278 /src/lib/netlist/plib/pstream.h
parentbca7016758229428934398a13406847604d77152 (diff)
netlist: Refactored pokenizer.
* Separated tokenizing and reading of tokens. * This enables caching of parsing results on the token level. * Implemented caching of token stream. * Overall this significantly improves parsing performance (~10x) * Next step towards a bare-bone nltool which does not depend on macro devices.
Diffstat (limited to 'src/lib/netlist/plib/pstream.h')
-rw-r--r--src/lib/netlist/plib/pstream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pstream.h b/src/lib/netlist/plib/pstream.h
index 21d5531848c..97a4a0eea5f 100644
--- a/src/lib/netlist/plib/pstream.h
+++ b/src/lib/netlist/plib/pstream.h
@@ -68,6 +68,8 @@ public:
putf8_reader(std::unique_ptr<std::istream> &&rhs) noexcept
: m_strm(std::move(rhs))
{
+ // no bad surprises
+ m_strm->imbue(std::locale::classic());
}
bool eof() const { return m_strm->eof(); }