13
0
livetrax/libs/pbd/test
Tim Mayberry c634daef6a Add locale independent and thread safe string conversion API with tests
All conversions are performed as if in the "C" locale but without actually
changing locale.

This is a wrapper around printf/sscanf for int types which aren't affected by
locale and uses glib functions g_ascii_strtod and g_ascii_dtostr for
float/double types.

My first attempt at this used std::stringstream and
ios::imbue(std::locale::classic()) as it should be thread safe, but testing
shows it is not for gcc/mingw-w64 on Windows, and possibly also some versions
of macOS/OS X.

Use "yes" and "no" when converting a boolean in PBD::string_to<bool> as this
seems to be the convention used throughout libardour which will allow using
string_to<bool> in those cases.

Add accepted bool string values from PBD::string_is_affirmative to
PBD::string_to<bool>

Mark strings in pbd/string_convert.cc as not for translation

Add u/int16_t string conversions to pbd/string_convert.h and tests

Add DEBUG_TRACE output on conversion errors

Add int8_t/uint8_t conversions(using int16/uint16 types) to string_convert.h

Add support for converting an infinity expression to/from string

Follows the C99/C11 standard for strtof/strtod where subject sequence is an
optional plus or minus sign then INF or INFINITY, ignoring case.
2017-04-16 14:02:41 +10:00
..
i18n_test
convert_test.cc
convert_test.h
filesystem_test.cc PBD::canonical_path will no longer throw so change test 2016-09-19 15:55:39 +10:00
filesystem_test.h Add test for PBD::canonical_path on Windows using utf8 strings 2016-09-19 14:47:52 +10:00
Makefile
mutex_test.cc
mutex_test.h
natsort_test.cc add a natural sort algorithm 2016-07-14 16:52:43 +02:00
natsort_test.h add a natural sort algorithm 2016-07-14 16:52:43 +02:00
ProtoolsPatchFile.midnam
reallocpool_test.cc
reallocpool_test.h
RosegardenPatchFile.xml
scalar_properties.cc
scalar_properties.h
signals_test.cc
signals_test.h
string_convert_test.cc Add locale independent and thread safe string conversion API with tests 2017-04-16 14:02:41 +10:00
string_convert_test.h Add locale independent and thread safe string conversion API with tests 2017-04-16 14:02:41 +10:00
test_common.cc
test_common.h
testrunner.cc
TestSession.ardour
timer_test.cc
timer_test.h
windows_timer_utils_test.cc Give the Windows MMTimer test a better chance of passing 2016-09-19 14:47:52 +10:00
windows_timer_utils_test.h
xml_test.cc Add test of pbd/xml++.h API performance with three file sizes 2016-10-10 08:45:34 +10:00
xml_test.h Add test of pbd/xml++.h API performance with three file sizes 2016-10-10 08:45:34 +10:00
xpath.cc
xpath.h