You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
We could probably introduce a better "trim" method to SString using find_first_not_of and find_last_not_of with \t to find the range of valid characters and return substr.
e92702c
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.
Note that there's at least 2 different space symbols so this might not fix it if they use the other symbol.
e92702c
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.
We could probably introduce a better "trim" method to SString using
find_first_not_of
andfind_last_not_of
with\t
to find the range of valid characters and returnsubstr
.e92702c
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.
I suggest to add a new namespace with our string library functions. This will help us to avoid SString in the new code