Joseph Edwards Van Riper III
32ccbfb747
Removed utf8 path from #include.
refs #43
5 years ago
Nemanja Trifunovic
89cfc3e38b
Replace throw() with noexcept when using C++11 or later
5 years ago
Nemanja Trifunovic
687a59d88c
Add override keyword when compiled with C++11 or later
5 years ago
Nemanja Trifunovic
f26d39e8ad
Move C++ version detection to core.h
5 years ago
nemtrif
b1002fd198
Introduce UTF_CPP_CPLUSPLUS macro.
Let the users set the C++ standard version they want to support.
5 years ago
Nemanja Trifunovic
c523193025
unchecked::replace_invalid()
Add unchecked version of replace_invalid function.
5 years ago
Nemanja Trifunovic
04d29d92ae
Add inline declarations to non-template functions in cpp11.h
Fix for issue #31
5 years ago
Nemanja Trifunovic
66804081d4
Introduce GTest
Restructure tests to use Google Test framework
5 years ago
Nemanja Trifunovic
a0a2d9d1e8
Fix for the cpp11.h header guard
Fix for the issue #27
5 years ago
Nemanja Trifunovic
007f8e32c4
advance() can work in backward direction.
advance() now can decrement the iterator if the number of steps to advance is negative.
5 years ago
Nemanja Trifunovic
92158c9ce1
Minor whitespace fixes
5 years ago
Nemanja Trifunovic
00d73e4a02
Remove deprecated functions
Removed:
- previous
- is_bom
5 years ago
Nemanja Trifunovic
2b8596149e
Support for C++11
Optional support for C++11 features
5 years ago
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.
5 years ago
Gleb Mazovetskiy
026aed63d9
replace_invalid: Replace final incomplete sequence
In replace_invalid, if NOT_ENOUGH_ROOM is returned by `validate_next`
then it simply means there is an incomplete sequence at the end of the
input.
Replace it instead of erroring out.
6 years ago
Nemanja Trifunovic
5408022bd6
Fix -Wshadow warnings
Fix the GNU and CLang's -Wshadow warning by renaming the input parameters.
8 years ago
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.
8 years ago
Nemanja Trifunovic
46d0d807dc
Initial import
Importing utf8 cpp 2.3.4 to GitHub.
9 years ago