Commit graph

13 commits

Author SHA1 Message Date
Nemanja Trifunovic
65701fe007 Compile time checks for size of UTF-16 code units 2025-01-11 11:09:19 -05:00
root
77870cc80b Fix Wsign-conversion warnings 2024-11-02 20:38:03 -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
2023-10-21 18:16:40 -04: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
Nemanja Trifunovic
3c85cd48f0 Add prefix to NOEXCEPT and OVERRIDE macros.
Fix for issue #72 : Macro names should have a prefix
2020-09-27 14:20:03 -04:00
Nemanja Trifunovic
89cfc3e38b Replace throw() with noexcept when using C++11 or later 2019-07-06 18:41:35 -04:00
Nemanja Trifunovic
687a59d88c Add override keyword when compiled with C++11 or later 2019-07-06 18:25:07 -04:00
Nemanja Trifunovic
f26d39e8ad Move C++ version detection to core.h 2019-07-06 17:21:02 -04:00
Nemanja Trifunovic
92158c9ce1 Minor whitespace fixes 2019-04-02 20:20:28 -04:00
Nemanja Trifunovic
00d73e4a02 Remove deprecated functions
Removed:
- previous
- is_bom
2019-04-02 17:54:36 -04:00
Akira Miyakoda
cfc351c861 Fix MSVC 2017-2019 warning about negative unsigned value.
Fix an MSVC warning by defining a constant by an immediate value instead of a formula including an intentional overflow.
2019-02-18 21:50:08 +09:00
Greg Hewgill
9d52bc19dc Check for end iterator before using iterator
If it == end, then sequence_length(it) will be called which will attempt to dereference the it iterator. This is normally harmless, because the get_sequence_x() functions each check to see whether it == end. However, some runtime libraries (MSVC CRT debug build in particular) check the validity of every iterator dereference, and a runtime check will be triggered inside sequence_length() if it is at the end.
2016-09-28 13:35:57 +13:00
Nemanja Trifunovic
46d0d807dc Initial import
Importing utf8 cpp 2.3.4 to GitHub.
2015-08-16 08:55:59 -04:00