Previous 199869 Revisions Next

r152708 Thursday 24th September, 2020 at 13:22:25 UTC by Couriersud
netlist: make pstring length/size use consistent.

* length reports the number of character codes in the string
* size reports the size in memory units
* Reminder: Set PSTRING_USE_STD_STRING to 1 in pstring.h and get
   native std::string
* pstrings are compatible to std::string but only support a limited
   subset of functionality.
* By default (always like this) utf8 is supported and thus length
   reports the number of multi-byte characters.
[/branches/aaron-nl3/src/lib/netlist]nl_setup.cpp
[/branches/aaron-nl3/src/lib/netlist/plib]pfmtlog.cpp pfunction.cpp ppreprocessor.cpp pstream.h pstring.h


Previous 199869 Revisions Next


© 1997-2024 The MAME Team