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

Update function MISC::is_utf8() #974

Merged
merged 2 commits into from May 14, 2022
Merged

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented May 14, 2022

Add test cases for MISC:is_utf8()

Update function MISC::is_utf8()

関数の引数を更新して処理を効率化します。
追加された長さチェックはヌル終端の保証があるconst std::string&なら不要ですが他のis_*関数との一貫性のためstd::string_viewを使います。

関連のpull request: #971

ma8ma added 2 commits May 14, 2022 16:21
関数の引数を更新して処理を効率化します。
追加された長さチェックはヌル終端の保証がある`const std::string&`なら
不要ですが他の`is_*`関数との一貫性のため`std::string_view`を使います。
@ma8ma ma8ma added the refactoring コードの整理 (バグ修正でも機能変更でもない) label May 14, 2022
@ma8ma ma8ma merged commit 13d012e into JDimproved:master May 14, 2022
@ma8ma ma8ma deleted the update-misc-is_utf8 branch May 14, 2022 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring コードの整理 (バグ修正でも機能変更でもない)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant