-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
feat: Modify search/text_search.cpp #1662
feat: Modify search/text_search.cpp #1662
Conversation
@Panquesito7 I made a new PR as you suggested. For the blockchain code, I'll soon add it after sufficient changes. Can you please review this? 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 😄
search/text_search.cpp
Outdated
@@ -12,7 +13,31 @@ | |||
|
|||
/** Main function | |||
*/ | |||
|
|||
std::string lower(std::string word) { // convert a C++ string to lowercase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still missing proper documentation (check the typical structure of a program as a reference).
@siriak can you please see it? 😅 I guess @Panquesito7 is a bit occupied with some important work... |
@Panquesito7 needs to review it before merging anyway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there! 😄
@Panquesito7 I'm done with the required changes 😃 |
search/text_search.cpp
Outdated
/** Main function | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just to accept this suggestion, and you're done! 😄
/** Main function | |
*/ | |
/** | |
* @brief Main function | |
* @returns 0 on exit | |
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah sure! 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work! 🚀 Thank you for your contribution! We hope you keep contributing. 😄👍🎉
Thank you so much for helping me out throughout the process @Panquesito7 😄 I'll contribute more! |
.gitignore
Outdated
@@ -34,4 +34,4 @@ a.out | |||
*.out | |||
*.app | |||
|
|||
build/ | |||
build/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undo this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this same? I don't get what's different here 😅
@Panquesito7 @ayaankhan98 Uhh... Anything that I should do to make this branch good to merge? |
Description of Change
Modified
text_search.cpp
to include case-insensitive search. Also added test function to check for custom function calledlower()
Checklist
Notes: