Commit graph

11 commits

Author SHA1 Message Date
root
77870cc80b Fix Wsign-conversion warnings 2024-11-02 20:38:03 -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
2023-10-21 18:16:40 -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
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
Rick Gibbed
2b1521b48b Fix deprecated std::iterator usage (STL4015). 2020-02-22 08:15:16 -06:00
Nemanja Trifunovic
c523193025 unchecked::replace_invalid()
Add unchecked version of replace_invalid function.
2019-04-25 09:33:07 -04:00
Nemanja Trifunovic
007f8e32c4 advance() can work in backward direction.
advance() now can decrement the iterator if the number of steps to advance is negative.
2019-04-06 12:08:34 -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
Nemanja Trifunovic
46d0d807dc Initial import
Importing utf8 cpp 2.3.4 to GitHub.
2015-08-16 08:55:59 -04:00