Skip to content
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 29 commits into from
Mar 18, 2019
Merged

Utility::ValidateUTF8(): use UTF8-CPP #7014

merged 29 commits into from
Mar 18, 2019

Conversation

Al2Klimov
Copy link
Member

No description provided.

nemtrif and others added 23 commits August 15, 2015 12:11
Importing utf8 cpp 2.3.4 to GitHub.
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.
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
cmake: fixed undefined ${CMAKE_INSTALL_LIBDIR}
Ignore:
- .vscode
- build
@Al2Klimov
Copy link
Member Author

Substitutes #7013.

@dnsmichi
Copy link
Contributor

Which license does the library use? I wasn't able to figure it out from the headers.

@Al2Klimov
Copy link
Member Author

Looks like MIT.

@dgoetz
Copy link
Contributor

dgoetz commented Mar 14, 2019

Looks more like https://opensource.org/licenses/BSL-1.0

@lazyfrosch
Copy link
Contributor

Please document the license with name and URL reference inside the third-party/utf8cpp/ directory.

Packagers will thank you.

@Al2Klimov Al2Klimov removed the request for review from dnsmichi March 15, 2019 08:50
@Al2Klimov Al2Klimov self-assigned this Mar 15, 2019
@Al2Klimov
Copy link
Member Author

@Al2Klimov Al2Klimov requested review from lazyfrosch and removed request for lazyfrosch March 15, 2019 11:54
@Al2Klimov Al2Klimov removed their assignment Mar 15, 2019
@Al2Klimov Al2Klimov requested review from dnsmichi and removed request for lazyfrosch March 15, 2019 12:35
@dnsmichi
Copy link
Contributor

Thanks for clarification, much appreciated 👍

@dnsmichi dnsmichi added the core/quality Improve code, libraries, algorithms, inline docs label Mar 18, 2019
@dnsmichi dnsmichi added this to the 2.11.0 milestone Mar 18, 2019
@dnsmichi dnsmichi merged commit ea80d93 into master Mar 18, 2019
@Al2Klimov Al2Klimov deleted the feature/utf8cpp branch March 18, 2019 10:12
@lippserd lippserd mentioned this pull request Dec 6, 2019
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core/quality Improve code, libraries, algorithms, inline docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants