-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utility::ValidateUTF8(): use UTF8-CPP #7014
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Importing utf8 cpp 2.3.4 to GitHub.
Syntax Highlighting
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.
Check for end iterator before using iterator
The build has only one CMakeLists.txt now. Added support for CTest
Fix the GNU and CLang's -Wshadow warning by renaming the input parameters.
This test was failing for me when I compiled with clang. Must have a different initializer. I changed the test to match the example from the README and it passes when I build with both clang and gcc.
Update test.cpp
The MSVC-generated code in debug mode was (quite rightly) complaining about iterating past the start of an empty vector, and aborting the test.
* Able to use as subfolder * Able to install (and import again in cmake) * Able to disable tests * Able to disable samples
Modernize cmake
Fix smoke test
cmake: fixed undefined ${CMAKE_INSTALL_LIBDIR}
Ignore: - .vscode - build
Substitutes #7013. |
Al2Klimov
force-pushed
the
feature/utf8cpp
branch
from
March 14, 2019 10:06
3a4ab50
to
0905122
Compare
Which license does the library use? I wasn't able to figure it out from the headers. |
Looks like MIT. |
Looks more like https://opensource.org/licenses/BSL-1.0 |
Please document the license with name and URL reference inside the Packagers will thank you. |
Show license more prominently
Al2Klimov
force-pushed
the
feature/utf8cpp
branch
from
March 15, 2019 12:34
0bd9f94
to
60ec11d
Compare
Thanks for clarification, much appreciated 👍 |
dnsmichi
approved these changes
Mar 18, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.