wxWidgets/tests/streams
Vadim Zeitlin e3589af56a Fix wxStringOutputStream position when using external string
Initialize m_pos correctly when using an existing, and hence possibly
not empty, string (and not the internal one which is always empty
initially). The old code was totally wrong as it divided the string
length by the size of wxChar instead of multiplying by it, but doing
this could have been wrong too with UTF-16 and surrogates, so use the
conversion object to compute the real length of the string
representation in the corresponding encoding.

Add a simple unit test checking that this works as intended.

Closes #17985.
2017-11-03 15:25:36 +01:00
..
bstream.h Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
datastreamtest.cpp Handle strings with embedded NULs in wxDataStream 2016-06-04 21:47:12 +02:00
ffilestream.cpp Remove test input file in file stream unit tests only once 2017-11-01 14:45:06 +01:00
fileback.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
filestream.cpp Remove test input file in file stream unit tests only once 2017-11-01 14:45:06 +01:00
iostreams.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
largefile.cpp Replace CppUnit with Catch for unit tests 2017-11-02 01:53:16 +01:00
memstream.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
socketstream.cpp Add a check for wxSocketServer creation to the unit tests. 2015-06-23 19:11:31 +02:00
sstream.cpp Fix wxStringOutputStream position when using external string 2017-11-03 15:25:36 +01:00
stdstream.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
tempfile.cpp Remove all lines containing cvs/svn "$Id$" keyword. 2013-07-26 16:02:46 +00:00
textstreamtest.cpp Use wx-prefixed macros throughout the repository. 2015-04-23 22:00:35 +04:00
zlibstream.cpp Add missing break statement 2017-11-02 08:55:00 -07:00