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

Trim newlines utility function #7718

Merged
merged 3 commits into from Nov 5, 2020
Merged

Conversation

maloel
Copy link
Collaborator

@maloel maloel commented Nov 4, 2020

No description provided.

// fourth\n
inline std::string trim_newlines( std::string s )
{
char const * const base = s.c_str();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add some comments to the code? What each section does?
maybe about the variables? you got s, base, src and dest , hard to understand what are their roles.

Copy link
Collaborator

@Nir-Az Nir-Az left a comment

Choose a reason for hiding this comment

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

I would consider moving the file to the common folder instead of the utility one. it is more tailored function then a generic one.

@maloel maloel merged commit b50cccf into IntelRealSense:development Nov 5, 2020
@maloel maloel deleted the trim-nls branch March 25, 2021 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants