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_euc() to MISC::is_eucjp() #971

Merged
merged 2 commits into from May 7, 2022

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented May 7, 2022

Add test cases for MISC::is_euc()

Update function MISC::is_euc() to MISC::is_eucjp()

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

ma8ma added 2 commits May 7, 2022 22:43
関数名をより正確に変更します。また、引数を更新して処理を効率化します。
追加された長さチェックはヌル終端の保証がある `const std::string&`なら
不要ですが他の`is_*`関数との一貫性のため`std::string_view`を使います。
@ma8ma ma8ma added the refactoring コードの整理 (バグ修正でも機能変更でもない) label May 7, 2022
@ma8ma ma8ma merged commit 9b4aad6 into JDimproved:master May 7, 2022
@ma8ma ma8ma deleted the update-misc-is_euc-to-misc-is_eucjp branch May 7, 2022 14:04
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