0
0
mirror of https://github.com/nemtrif/utfcpp.git synced 2026-01-18 17:11:21 +01:00

145 Commits

Author SHA1 Message Date
nemtrif
cfc9112cee Added a replace_invalid test for issue #136 2025-12-31 11:02:43 -05:00
nemtrif
63d64de49f Release 4.0.9 v4.0.9 2025-12-28 17:26:42 -05:00
Nemanja Trifunovic
7079562787 Removed static assert for C++98/03
It is used for some very edge cases and it is hard to avoid warnings
accross compilers. Not worth it...
2025-11-09 19:32:19 -05:00
nemtrif
961e7a3e9b Another attempt at UTF_CPP_STATIC_ASSERT for C++ 98/03 2025-09-27 16:46:42 -04:00
Nemanja Trifunovic
b7679e67ff Fix UTF_CPP_STATIC_ASSERT for C++ 98 2025-09-27 10:54:37 -04:00
nemtrif
f9319195df Release 4.0.8 v4.0.8 2025-09-15 17:41:48 -04:00
nemtrif
7506cca569 Avoid a sign-conversion warning in StaticAssert 2025-09-15 17:40:12 -04:00
nemtrif
acd249b2a2 Fix the name clash with assert macro 2025-09-15 17:19:34 -04:00
nemtrif
cfea16a734 Reiease 4.0.7 v4.0.7 2025-09-13 17:13:25 -04:00
Yancey
e66f6484fd fix compile warning (#133) 2025-08-23 12:32:30 -04:00
Nemanja Trifunovic
da71cf9103 CI workflows for Linux/gcc and Windows/msvc 2025-07-05 18:21:30 -04:00
Nemanja Trifunovic
429d7aacb7 Add CI workflow on Linux/Clang 2025-07-05 13:08:30 -04:00
Nemanja Trifunovic
4ea0fc5e7e Remove extern/ftest 2025-07-05 13:04:31 -04:00
Nemanja Trifunovic
79ef7e1cdc Get rid of submodules and add ftest.h to tests directory. 2025-07-05 12:53:48 -04:00
Yancey
0bef8b2785 tidy code (#132)
* add static_cast to remove warnings
* remove trailing whitespaces
2025-06-22 07:52:25 -04:00
Nemanja Trifunovic
a0e0dcc15d Remove Github CI 2025-06-22 07:47:21 -04:00
Nemanja Trifunovic
65701fe007 Compile time checks for size of UTF-16 code units 2025-01-11 11:09:19 -05:00
root
b26a5f718f Release 4.0.6 v4.0.6 2024-11-03 13:03:52 -05:00
root
10b7895211 Release 4.0.5 2024-11-03 13:02:26 -05:00
root
77870cc80b Fix Wsign-conversion warnings 2024-11-02 20:38:03 -04:00
root
cd191b6c45 Tests: use add_compile_options() to add warnings to tests 2024-11-02 19:42:46 -04:00
Nemanja Trifunovic
6be08bbea1 Merge pull request #120 from ufleisch/arch-independent
Use ARCH_INDEPENDENT with write_basic_package_version_file
v4.0.5
2023-12-29 17:40:20 -05:00
Urs Fleisch
b594c9bfe3 Use ARCH_INDEPENDENT with write_basic_package_version_file
This allows to use a package built on amd64 also on
32-bit Android.
2023-12-29 15:29:47 +01:00
Nemanja Trifunovic
139d233262 Merge pull request #118 from striezel-stash/fix-typos
Fix some typos
2023-12-11 20:27:00 -05:00
Nemanja Trifunovic
9d9067ff42 Merge pull request #119 from striezel-stash/actions-checkout-v4
Update actions/checkout in GitHub Actions to v4
2023-12-11 20:25:59 -05:00
Dirk Stolle
bb2b8f2ac2 Update actions/checkout in GitHub Actions to v4 2023-12-11 03:58:53 +01:00
Dirk Stolle
2725faafbc Fix some typos 2023-12-11 03:55:49 +01:00
nemtrif
aed58281cf Release 4.0.4 v4.0.4 2023-12-10 10:42:20 -05:00
nemtrif
4965d378fb Deprecate CMake support
Make clear that CMake is not the supported way of installing the library
2023-12-10 10:41:12 -05:00
nemtrif
c9733bbe49 Release 4.0.3 v4.0.3 2023-12-03 18:03:19 -05:00
Nemanja Trifunovic
bc36bafd6b Merge pull request #115 from mhx/mhx/fix-install
fix: revert to pre-4.x install path {prefix}/utf8cpp (see #112)
2023-12-03 17:58:59 -05:00
Marcus Holland-Moritz
fbc0225345 fix: revert to pre-4.x install path {prefix}/utf8cpp (see #112)
This reverts the install path of the headers to the path that was
used before the 4.x release series, unbreaking projects that were
building against the library without using the CMake config files.
2023-11-30 06:52:29 +01:00
Nemanja Trifunovic
b199c0d6bb A minor fix to README.md 2023-11-24 18:45:51 -05:00
nemtrif
a645095170 Remove CircleCI, as we are using GitHub Workflows now 2023-11-24 18:20:06 -05:00
Nemanja Trifunovic
fdca3c98ab Create cmake-multi-platform.yml 2023-11-24 18:15:17 -05:00
Nemanja Trifunovic
f6780f77f6 Merge pull request #113 from ufleisch/fix-cmake
Fix CMake build system to use existing include directory (#112)
v4.0.2
2023-11-04 11:33:22 -04:00
Urs Fleisch
40d6c67d0a Fix CMake build system to use existing include directory (#112)
Also provide an imported target utf8::cpp for backward compatibility.
2023-11-04 15:22:16 +01:00
nemtrif
e41ec639b7 Version 4.0.1 v4.0.1 2023-10-28 11:23:34 -04:00
nemtrif
972c5501d7 Fix for issue #111
Fixing regression caused by the fix for #78, which leads to utf8::unchecked::utf16to8() chopping off the last character in many cases.
2023-10-28 11:14:26 -04:00
Nemanja Trifunovic
925e7147ec Merge V4 branch into main (#110)
* Redefined and renamed types for code units.

* Remove -Wsign-conversion from test builds.

* find_invalid and is_valid that work with C-style strings.

* Lifted the C++11 requirement for some functions
 that take std::string as an argument.

* Support for C++20 u8string

Issue #89

* Update test docker image to 4.0.0

* Update Dockerfile to run tests with a recent gcc compiler.

* Make some internal helper functions non-template

* Add append16 function

Support for appending codepoints to existing utf16 encoded strings.

See #91

* next16

* Tests and documentation for next16

* Rewrite CMakeLists

Drop the existing CMake structure and write the new one from scratch. The root CMakeLists.txt is used for installing the package without building and running tests. Testing is done via a separate CMakeLists.txt in the tests directory.

* Remove "samples" directory.

The content of that file is already in the documentation.

* Update README.md

Restructure the reference, add installation instructions, toc, other minor changes
v4.0.0
2023-10-21 18:16:40 -04:00
nemtrif
6f0e7c7865 Version 3.2.5 v3.2.5 2023-09-24 17:20:06 -04:00
nemtrif
0ee84daac8 Fix for issue #78: unchecked::utf16to8 reads out of bounds if provided only leading surrogate 2023-09-24 17:17:18 -04:00
nemtrif
0c8da664ee Typo in documentation. 2023-09-24 16:38:24 -04:00
nemtrif
c87f2d3951 Re-write the "Alternatives" section of the documentation to point to a third-party article. 2023-09-24 16:35:27 -04:00
Kai Pastor
18026b8ebc Guard add_library 2023-09-23 15:20:56 -04:00
nemtrif
f23474118c Version 3.2.4 v3.2.4 2023-08-12 11:18:39 -04:00
nemtrif
df857efc5b Set cmake_minimum_required VERSION to 3.0.2...3.27
Address issue https://github.com/nemtrif/utfcpp/issues/103
2023-08-06 07:39:25 -04:00
Felix Wang
dbb2423248 Use ARCH_INDEPENDENT option that is introduced in CMake 3.14 2023-06-25 11:26:29 -04:00
spaette
2ad995746b typos 2023-01-14 14:26:42 -05:00
nemtrif
79835a5fa5 Remove -Wsign-conversion from test builds. v3.2.3 2022-12-28 12:47:32 -05:00