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

Add std::string::compare API to fixed_string [15351] #2901

Merged
merged 6 commits into from
Aug 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions include/fastrtps/utils/fixed_size_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ struct fixed_string
return string_len;
}

/*!
* Compare with a std:.string.
Copy link
Contributor

Choose a reason for hiding this comment

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

Little typo: std::string instead of std:.string

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in a4d80e5

*
* @param str std::string to be compared with.
*
* @return Integer value with the result of the comparison as described in `std.:string::compare()`.
*/
int compare(
const std::string& str ) const
MiguelCompany marked this conversation as resolved.
Show resolved Hide resolved
{
Expand Down