-
Notifications
You must be signed in to change notification settings - Fork 376
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
Clean util_string #2339
Clean util_string #2339
Conversation
337d7fd
to
031b380
Compare
Can be merged anytime to avoid conflicts, the rest can be merged in another PR. |
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.
This PR is so long :) I expect the build/tests to complain if there is any problem, otherwise, I guess we will find out soon!
@@ -290,7 +292,7 @@ namespace mamba | |||
} | |||
|
|||
LOG_DEBUG << "Currently running processes: " << get_all_running_processes_info(); | |||
LOG_DEBUG << "Remaining args to run as command: " << join(" ", command); | |||
fmt::print(LOG_DEBUG, "Remaining args to run as command: {}", fmt::join(command, " ")); |
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.
This is more a general question, but are we using fmt
now everywhere for logging?
(btw, the LOG_DEBUG
in the line above could be replaced as well)
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 think we can use fmt
wherever we need it, here it avoids allocating the result of join
.
util_string
headerutil_string.cpp
util.hpp
fromutil_string.hpp
(lots of header changes related to this)AddDone in Add strip_if functions #2344strip_if
function (needed for following PR)AddDone in Add split_once functions #2345split_once
functions (needed for following PR)Addsplit_for_each
as a replacement of split?