fktn-k / fkYAML

A C++ header-only YAML library
MIT License
69 stars 7 forks source link

Query the count of UTF-8 character bytes #317

Closed fktn-k closed 5 months ago

fktn-k commented 5 months ago

Before this PR, not only utf8_encoding class but also lexical_analyzer and input_adapter types knows too much of the concrete UTF-8 encoding format so those classes can get the actual number of bytes for a target UTF-8 character.
So, this PR has added the feature with which the actual number of bytes can be aquired from the first byte of a target UTF-8 character.

Also, invalid_encoding exception class constructor requires a std::array<int, N> parameter and the instanciation consts unnecessarily.
To fix that, the constructor now receives a std::initializer_list<uint8_t> parameter.


Pull Request Checklist

Read the CONTRIBUTING.md file for detailed information.

Please don't

github-actions[bot] commented 5 months ago

:octocat: Upload Coverage Event Notification

Coverage data has been uploaded for the commit eab389467dd25ee91e3b280296055a00707219b4. You can download the artifact which contains the same file uploaded to the Coveralls and its HTML version.

Name fkYAML_coverage.pr317.zip
ID 1432932808
URL https://github.com/fktn-k/fkYAML/actions/runs/8770863728/artifacts/1432932808
coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 8770863728

Details


Totals Coverage Status
Change from base Build 8766753394: 0.0%
Covered Lines: 3538
Relevant Lines: 3538

💛 - Coveralls