Commit graph

121 commits

Author SHA1 Message Date
Nemanja Trifunovic
50df916b50 Update README.md
Restructure the reference, add installation instructions, toc, other minor changes
2023-10-21 17:13:00 -04:00
nemtrif
6efa6e7de1 Remove "samples" directory.
The content of that file is already in the documentation.
2023-10-15 17:07:18 -04:00
nemtrif
72527bda4b 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.
2023-10-15 17:03:39 -04:00
nemtrif
d865081bf4 Tests and documentation for next16 2023-10-01 18:27:38 -04:00
nemtrif
0b1c712852 Merge branch 'master' into v4 2023-10-01 13:17:08 -04:00
nemtrif
6f0e7c7865 Version 3.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 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
nemtrif
eab76c5312 next16 2023-08-06 07:32:16 -04:00
nemtrif
b455811a4e Add append16 function
Support for appending codepoints to existing utf16 encoded strings.

See #91
2023-06-25 15:52:08 -04:00
nemtrif
fffc67effd Make some internal helper functions non-template 2023-06-25 13:00:20 -04:00
Felix Wang
dbb2423248 Use ARCH_INDEPENDENT option that is introduced in CMake 3.14 2023-06-25 11:26:29 -04:00
nemtrif
a9e9849e95 Update Dockerfile to run tests with a recent gcc compiler. 2023-04-23 12:51:39 -04:00
nemtrif
4b62f1eff1 Update test docker image to 4.0.0 2023-04-23 12:03:09 -04:00
nemtrif
ba331cf8e7 Support for C++20 u8string
Issue #89
2023-04-23 11:17:44 -04:00
spaette
2ad995746b typos 2023-01-14 14:26:42 -05:00
nemtrif
2af99eae7a Lifted the C++11 requirement for some functions
that take std::string as an argument.
2022-12-28 15:26:33 -05:00
nemtrif
d5dc5701ab find_invalid and is_valid that work with C-style strings. 2022-12-28 14:07:19 -05:00
nemtrif
ffaa0a16d4 Remove -Wsign-conversion from test builds. 2022-12-28 14:07:19 -05:00
nemtrif
79835a5fa5 Remove -Wsign-conversion from test builds. 2022-12-28 12:47:32 -05:00
nemtrif
6ad410abfa Merge branch 'master' into v4 2022-12-28 12:27:03 -05:00
nemtrif
53398ca702 Restructure tests. 2022-12-28 12:20:41 -05:00
nemtrif
ab72c87365 Redefined and renamed types for code units. 2022-12-27 14:46:32 -05:00
nemtrif
e3e57c811a Fix for issue #92: Clang 10 Compiler warnings
Fix warnings when -Wconversion or -Wsign-conversion are enabled.
2022-12-26 14:19:04 -05:00
nemtrif
d736c29d38 Fix -Wconversion warnings in tests when -funsigned-char option is used.
This change affects only tests.
2022-12-24 14:45:04 -05:00
Nemanja Trifunovic
780bd57d63
Merge pull request #96 from Finkman/provide-ns-on-installed
Improve cmake install
2022-11-26 17:06:39 -05:00
Sven Fink
73b347f313 Adds the following advantages:
- utf8::cpp is available, even when installed
 - cmake is aware of the library version
 - compatible with previous usage: target utf8cpp available when installed
2022-11-22 12:42:26 +01:00
nemtrif
3ca904b219 Version 3.2.2 2022-11-06 16:14:17 -05:00
nemtrif
aa3b12c52b Added a couple of statis_casts to eliminate signed conversion warnings. 2022-10-17 05:20:34 -04:00
nemtrif
ee90a4a528 Added compiler options to enable warnings. 2022-10-02 17:51:50 -04:00
Nemanja Trifunovic
d8b92208fd
Merge pull request #87 from cschreib/patch-1
Add missing export() command. Issue #86
2021-12-26 17:22:41 -05:00
Corentin Schreiber
a92f85526b
Add missing export() command 2021-12-26 17:49:35 +00:00
Nemanja Trifunovic
b85efd66a7 Test string literals 2021-06-06 11:09:04 -04:00
Nemanja Trifunovic
4e11497669
Merge pull request #80 from RT222/master
Fix the inclusion of both cpp11 and cpp17 headers on C++17 compilation
2021-05-31 08:41:12 -04:00
Rémy Tassoux
ec6747005b Fix the inclusion of both cpp11 and cpp17 headers on C++17 compilation 2021-05-30 16:14:37 +02:00
Nemanja Trifunovic
ddd38b3042 Version 3.2 2021-05-01 18:07:14 -04:00
Nemanja Trifunovic
2af93bd670 Documentation: C++ 17 support. 2021-04-30 15:06:55 -04:00
Nemanja Trifunovic
b6cd18f929 test_utf32to8 tests string_view, not string 2021-04-30 14:59:55 -04:00
Nemanja Trifunovic
0991356b73 find_invalid(string_view) returns string_view::npos, not string::npos 2021-04-30 14:58:30 -04:00
Nemanja Trifunovic
4bed367c14 Update test docker image 2021-04-25 13:47:36 -04:00
Nemanja Trifunovic
a7d530de5f C++ 17 support: add tests, remove duplicate utf8::append() 2021-04-25 11:54:47 -04:00
Nemanja Trifunovic
50361edbfa
Merge pull request #77 from RT222/master
Support for C++17
2021-04-25 10:57:06 -04:00
Nemanja Trifunovic
fe79d14ae7 Switching from gtest to ftest for unit-testing. 2021-04-24 15:02:08 -04:00
Nemanja Trifunovic
7d17aed953
Merge pull request #79 from fu7mu4/it-is-code
Does it have syntax hilight
2021-03-28 11:38:21 -04:00
fu7mu4
957e300524 Does it have syntax hilight
I think that the "it" means the variable in the code. If so, the it
should have syntax-hilight
2021-03-18 18:43:22 +09:00
Rémy Tassoux
d40e4948f5 Support for C++17 2021-02-22 15:17:27 +01:00