2
0
mirror of https://github.com/boostorg/locale.git synced 2026-01-19 04:22:08 +00:00

17 Commits

Author SHA1 Message Date
Alexander Grund
258e959402 Use Boost::charconv for try_to_int 2025-01-10 13:33:05 +01:00
Alexander Grund
843fdc9157 Replace (semi-)absolute includes to implementation headers by relative ones
Makes it easier to see the distinction, especially for tools.
2025-01-04 20:55:49 +01:00
Alexander Grund
0fa98f9cb4 Move show_config from CMake to Jamfile 2023-02-16 18:17:50 +01:00
Alexander Grund
b8a3c3cb53 Refactor tests and remove/combine/handle special cases for some ICU versions in tests 2022-10-13 20:58:25 +02:00
Alexander Grund
93eceaa4bc Fix test_boundary for ICU 70+
ICU 70+ doesn't split multiple whitespaces into separate "words" using the WordBreakIterator
2022-10-02 13:45:46 +02:00
Alexander Grund
bc830f2c88 CI: Enable all tests
All issues are now resolved.

This reverts commits
  3802e8ecb9 (CI: Test only building the library on Windows)
  36f718e12d (CI: Test only building the library when using ICU)
2022-10-02 13:45:46 +02:00
Alexander Grund
c6debb769c CI: Show output of test_config and rename to show_config 2022-09-27 21:58:45 +02:00
Alexander Grund
f45adfc9b9 Use UTF-16 <-> UTF-8 codecvt on Windows
Windows uses a 2-Byte `wchar_t` which effectively is UCS-2,
i.e. only codepoints up to U+FFFF.
So decoding an UTF-8 file with codepoints higher than that will fail.

As most Windows APIs now accept UTF-16 encoded `wchar_t` it makes sense
to also use that for the `codecvt` generated by the std-backend.

This is actually disallowed to be used for `std::basic_filebuf` but it
works in practice, so use it anyway.

Closes #71
2022-09-16 11:31:16 +02:00
Alexander Grund
fadb2190ce Move test headers to subfolder
Gets rid of the `test_` prefix in the filenames and avoids confusing those with the actual tests especially by renaming the test framework file from `test_locale.hpp` to `unit_test.hpp`
2022-09-13 12:50:23 +02:00
Alexander Grund
ec0016ea9d CMake: Enable Werror in tests for MSVC/GCC>=11 2022-09-13 12:50:22 +02:00
Alexander Grund
e68f381fa9 Refactor test build files
Change the Jamfile to use a format usable with `BoostTestJamfile`
and then use that in the CMakeLists
2022-09-13 12:50:22 +02:00
Alexander Grund
192807a27e Fix various MSVC warnings
Mostly constant conditions and narrowing casts
2022-07-01 17:13:52 +02:00
Alexander Grund
610335e13d Add missing ICU include path in CMake tests 2022-07-01 10:50:28 +02:00
Alexander Grund
d1fc12426f Remove trailing spaces 2022-06-04 11:50:39 +02:00
Alexander Grund
cece0fb018 Enable warnings-as-error in test
Ensures a warning-free build
2022-05-30 17:20:22 +02:00
Alexander Grund
817538cd70 Disable failing CMake tests 2022-05-27 15:21:58 +02:00
Alexander Grund
dc55ea3ab1 Add tests to CMake build 2022-05-27 11:53:15 +02:00