dc5aa493db
Bump Copyright year
...
Doxygen Action / build (push) Has been cancelled
Signed-off-by: Simon Rozman <simon.rozman@amebis.si >
2026-01-05 10:17:28 +01:00
Simon Rozman
2bfe310d47
unicode: inject invalid character on encode failure
...
...rather than throw. This mimics Windows behaviour.
Signed-off-by: Simon Rozman <simon@rozman.si >
2025-06-05 12:29:10 +02:00
Simon Rozman
8fd9fbf191
Bump Copyright year
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2025-01-08 12:36:35 +01:00
Simon Rozman
0560c7bce9
Add missing UTF-8 BOM
...
This is required on Windows with default charset set to Windows-1252 or
another non-UTF-8 charset.
Signed-off-by: Simon Rozman <simon@rozman.si >
2024-02-14 12:33:29 +01:00
Simon Rozman
681a6955d8
Xcode: resolve -Wunknown-pragmas
...
This is a multi-platform project and while trying to reduce amount of
Signed-off-by: Simon Rozman <simon@rozman.si >
2024-02-14 12:26:52 +01:00
Simon Rozman
9acd185d44
UnitTest: redesing to avoid #include ".cpp" in Xcode
...
Each unit test .cpp file is not a separate compilation unit in Xcode project
like it is in Visual Studio. Hopefully, Visual Studio test tool still likes
this arrangement.
Signed-off-by: Simon Rozman <simon@rozman.si >
2024-02-08 15:18:42 +01:00
Simon Rozman
08a18d1519
macOS support
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2024-02-08 12:09:33 +01:00
Simon Rozman
38c6b40b21
Bump Copyright year
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2024-01-06 10:55:09 +01:00
Simon Rozman
bb9988933e
unicode: add unit test for normalize
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-12-08 14:21:52 +01:00
Simon Rozman
b8fae2d0dd
pch.h -> pch.hpp
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-09-25 15:05:36 +02:00
Simon Rozman
921d235459
unicode: upgrade and promote use of charset_encoder
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-09-22 13:02:27 +02:00
Simon Rozman
edd480d64b
macOS fixes
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-09-14 15:57:55 +02:00
Simon Rozman
13703b1747
unicode: extend conversion with reusable charset_encoder
...
Windows takes care of internal converter state in MultiByteToWideChar
and WideCharToMultiByte and keeps them thread-safe. On other platforms,
iconv requires user to setup and keep converter state for thread-safe
conversions. This sounds time consuming for every string conversion,
therefore the concept of string converter (or converter state) has been
extended to Windows too, allowing uniform client code. On Windows, using
charset_encoder has no performance benefit, where on Linux and macOS,
there should be. To be measured...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-09-14 12:28:05 +02:00
Simon Rozman
66f8a6c3b7
Re-add UTF-8 BOM XCode is removing
...
Visual Studio IDE really needs it on non-UTF-8 PCs.
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-09-14 09:13:04 +02:00
Simon Rozman
83d7fd844d
Port to macOS
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-09-12 16:55:16 +02:00
Simon Rozman
aa4de5aa40
Make space for and add macOS unit testing stub project
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-09-11 16:11:57 +02:00
Simon Rozman
4965d1eac5
unicode: add unit tests
...
Signed-off-by: Simon Rozman <simon@rozman.si >
2023-08-18 15:05:19 +02:00