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

Implement MISC::ends_with(haystack, needle) #1244

Merged
merged 1 commit into from Sep 9, 2023
Merged

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Sep 9, 2023

haystackの末尾がneedleと一致するかチェックする文字列の操作を実装します。合わせてテストケースを追加し動作を確認します。

新しい規格のC++20には同等の操作を行うメンバー関数std::string::ends_with()std::string_view::ends_with()がありますがJDimが利用する規格はC++17であるため自前で実装します。

haystackの末尾がneedleと一致するかチェックする文字列の操作を
実装します。合わせてテストケースを追加し動作を確認します。

新しい規格のC++20には同等の操作を行うメンバー関数
`std::string::ends_with()`や`std::string_view::ends_with()`が
ありますがJDimが利用する規格はC++17であるため自前で実装します。
@ma8ma ma8ma added the feature 機能の追加と削除 label Sep 9, 2023
@ma8ma ma8ma merged commit d86261e into master Sep 9, 2023
20 checks passed
@ma8ma ma8ma deleted the implement-misc-ends_with branch September 9, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 機能の追加と削除
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant