Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added more utility functions for string manipulation in C++ #26

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

Closed
tashifkhan wants to merge 1 commit into quicksnip-dev:main from tashifkhan:main
Closed

Conversation

Copy link

@tashifkhan tashifkhan commented Dec 30, 2024

the functions include

  • Upper Case conversion
  • checking palindrome
  • finding substring
  • replacing substring

Copy link

netlify bot commented Dec 30, 2024
edited
Loading

Deploy Preview for quicksnip ready!

Name Link
🔨 Latest commit b14cd55
🔍 Latest deploy log https://app.netlify.com/sites/quicksnip/deploys/677296c379f1ff0008a0ff80
😎 Deploy Preview https://deploy-preview-26--quicksnip.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

"#include <string>",
"#include <algorithm>",
"",
"std::string toUpperCase(const std::string& input) {",
Copy link
Collaborator

@Mathys-Gasnier Mathys-Gasnier Dec 30, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you taking the string by reference ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a constant reference is a good thing. It will not copy the whole variable, but just create a reference. But in this case yes, instead of making a const reference here and then creating another copy to return the string. They can just pass by value and return that string after transforming.

"author": "tashifkhan"
},
{
"title": "Find Substring",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this snippet really require, when its just a single function in the STL?

Copy link
Collaborator

Hey, we recently updated how snippets are stored, please update your PR to match the changes, you will be able to see how to add snippets in CONTRIBUTING.md.
For ref: #87

Copy link
Collaborator

Hey, changes were requested on your PR, but we got no news for more than a week, Closing this as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@saminjay saminjay saminjay left review comments

@Mathys-Gasnier Mathys-Gasnier Mathys-Gasnier left review comments

Assignees
No one assigned
Labels
Snippets update needed Code needs to be updated.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /