Skip to content

Commit

Permalink
docs: Move comment in header
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>

Co-authored-by: Klaim <[email protected]>
  • Loading branch information
jjerphan and Klaim committed Dec 6, 2024
1 parent 02ffa79 commit 4626ba2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions libmamba/include/mamba/util/string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ namespace mamba::util
[[nodiscard]] auto strip(std::wstring_view input, std::wstring_view chars) -> std::wstring_view;
[[nodiscard]] auto strip(std::string_view input) -> std::string_view;
[[nodiscard]] auto strip(std::wstring_view input) -> std::wstring_view;

/**
* Dedicated implementation for inplace stripping of `std::string` to avoid copies
*/
void inplace_strip(std::string& input);

[[nodiscard]] auto strip_parts(std::string_view input, char c) -> std::array<std::string_view, 3>;
Expand Down
1 change: 0 additions & 1 deletion libmamba/src/util/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ namespace mamba::util

void inplace_strip(std::string& input)
{
// Dedicated implementation for std::string to avoid copies
if (input.empty())
{
return;
Expand Down

0 comments on commit 4626ba2

Please sign in to comment.