Commit graph

65 commits

Author SHA1 Message Date
Frédéric Jean-Prost
7e42ceb42f Adding base class for iterator2
class utf8::internal::iterator2 is a base class for utf8::iterator2 and utf8::unchecked::iterator2.
2019-10-23 14:38:24 +02:00
ritonglue
df0e5bad02
add class iterator2
the iterator class doesn't work with istream_iterator
2019-10-07 21:35:48 +02:00
nemtrif
170e2d11f5
Merge pull request #44 from tvanriper/patch-1
Removed utf8 path from #include.
2019-07-13 13:52:56 -04:00
Joseph Edwards Van Riper III
32ccbfb747
Removed utf8 path from #include.
refs #43
2019-07-09 05:50:09 -04:00
Nemanja Trifunovic
2370b95a86 Compile negative test with C++ 98
An attempt to ensure the library can be compiled with a C++ 98 compiler.

Unfortunatelly, GTEST can't be compiled with C++ 98, so only the negative tests are included at this point.
2019-07-07 20:27:54 -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
nemtrif
b1002fd198 Introduce UTF_CPP_CPLUSPLUS macro.
Let the users set the C++ standard version they want to support.
2019-06-30 13:06:11 -04:00
nemtrif
088dd3ad77
Merge pull request #40 from xantares/patch-1
Always use GNU install layout except MSVC
2019-05-24 19:30:55 -04:00
xantares
afc32b4c08
Always use GNU install layout except MSVC
Current for win32 targets the cmake config file is installed in INSTALL_PREFIX/CMake except for cygwin. 

But we want this also for MinGW, so I I'm thinking we want only this behavior for visual studio. 

What do you think ?
2019-05-20 15:24:15 +02:00
Nemanja Trifunovic
82c674b7a7 Version 3.1 2019-04-26 17:49:17 -04:00
Nemanja Trifunovic
33516ff074 Test -fno-exceptions with unchecked api 2019-04-25 14:23:02 -04:00
nemtrif
f16bdde67c
Merge pull request #37 from nemtrif/unchecked_replace_invalid
unchecked::replace_invalid()
2019-04-25 09:46:54 -04:00
Nemanja Trifunovic
c523193025 unchecked::replace_invalid()
Add unchecked version of replace_invalid function.
2019-04-25 09:33:07 -04:00
nemtrif
a3fa4ee84c
Merge pull request #36 from nemtrif/gtesturl
Submodule url for googletest is https
2019-04-25 08:52:32 -04:00
Nemanja Trifunovic
8fd51836a0 Submodule url for googletest is https
Fix for issue #34
2019-04-25 08:49:38 -04:00
nemtrif
ad27c7d5e0
Merge pull request #33 from nemtrif/optionalinstall
Installation is optional
2019-04-22 09:00:15 -04:00
Nemanja Trifunovic
293f85d972 Installation is optional
Issue #32 cmake option to disable install
2019-04-21 22:30:58 -04:00
Nemanja Trifunovic
a540297fd4 Version 3.0.3 2019-04-15 17:52:12 -04:00
Nemanja Trifunovic
04d29d92ae Add inline declarations to non-template functions in cpp11.h
Fix for issue #31
2019-04-15 17:49:11 -04:00
nemtrif
7412592772
Merge pull request #30 from nemtrif/ci
Continuous Integration
2019-04-14 20:19:48 -04:00
Nemanja Trifunovic
335a3ee6a0 Update docker to 3.0.1 2019-04-14 20:17:23 -04:00
Nemanja Trifunovic
d5e847d0a3 Update project version 2019-04-14 19:56:53 -04:00
Nemanja Trifunovic
e6da1a36aa Set up CircleCI 2019-04-14 19:56:53 -04:00
Nemanja Trifunovic
0b45681b60 Add Dockerfile 2019-04-14 17:24:53 -04:00
Nemanja Trifunovic
66804081d4 Introduce GTest
Restructure tests to use Google Test framework
2019-04-11 10:25:49 -04:00
Nemanja Trifunovic
a0a2d9d1e8 Fix for the cpp11.h header guard
Fix for the issue #27
2019-04-08 09:49:26 -04:00
nemtrif
7db72814ae
Merge pull request #24 from nemtrif/release_3_0
Release 3 0
2019-04-06 12:13:39 -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
236d61942e Update documentation for replace_invalid 2019-04-02 18:26:00 -04:00
nemtrif
d8b09b3019
Merge pull request #21 from glebm/fix-remove-invalid
replace_invalid: Replace final incomplete sequence
2019-04-02 18:23:18 -04:00
Nemanja Trifunovic
3793703e76 Remove unused test data 2019-04-02 18:09:00 -04:00
Nemanja Trifunovic
080f1e6a3a Remove utf8reader sample 2019-04-02 17:54:36 -04:00
Nemanja Trifunovic
00d73e4a02 Remove deprecated functions
Removed:
- previous
- is_bom
2019-04-02 17:54:36 -04:00
Nemanja Trifunovic
2b8596149e Support for C++11
Optional support for C++11 features
2019-04-02 17:54:36 -04:00
nemtrif
f637e70c10
Merge pull request #22 from AkiraMiyakoda/fix-msvc2019-warning
Fix MSVC 2017-2019 warning about negative unsigned value.
2019-03-27 18:12:51 -04:00
nemtrif
82344d6051
Merge pull request #23 from Al2Klimov/bugfix/license
Show license more prominently
2019-03-15 08:28:20 -04:00
Alexander A. Klimov
ef7bf0f783 Show license more prominently 2019-03-15 10:11:42 +01: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
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.
2018-11-28 00:39:15 +00:00
Nemanja Trifunovic
0a23881341 Create .gitignore
Ignore:
- .vscode
- build
2018-10-13 20:48:56 -04:00
Nemanja Trifunovic
60c490b89f Release v2.3.6 2018-09-24 19:49:14 -04:00
nemtrif
b641599f63
Merge pull request #18 from arteniioleg/patch-1
cmake: fixed undefined ${CMAKE_INSTALL_LIBDIR}
2018-09-24 19:35:33 -04:00
Oleg Artenii
fd39f7efb1
cmake: fixed undefined ${CMAKE_INSTALL_LIBDIR} 2018-09-14 09:24:40 +03:00
nemtrif
e6bde7819c
Merge pull request #14 from amerry/msvc-build-fix
Fix smoke test
2018-08-11 15:59:54 -04:00
nemtrif
37f382b35c
Merge pull request #17 from Erroneous1/modern_cmake
Modernize cmake
2018-08-10 19:53:27 -04:00
Aaron Bishop
3866386b6d Modernize cmake
* Able to use as subfolder
* Able to install (and import again in cmake)
* Able to disable tests
* Able to disable samples
2018-08-02 10:38:13 -04:00
Alex Merry
3723b0cc6e Fix smoke test on MSVC
The MSVC-generated code in debug mode was (quite rightly) complaining
about iterating past the start of an empty vector, and aborting the
test.
2018-03-07 16:43:54 +00:00