-
Notifications
You must be signed in to change notification settings - Fork 7
Replace map with vector to remove key-pair restriction for System data #894
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
Changes from 9 commits
ede0c36
6857d0b
823337a
eb71b78
4e7b3e4
3b00396
b8b1f00
a0417ea
cf435cb
b27ba51
9147b0d
4bcfc0a
90f592e
55ff7c3
b5403ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| // Copyright (C) 2023-2025 University Corporation for Atmospheric Research | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| #pragma once | ||
|
|
||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| namespace micm | ||
| { | ||
| inline std::string JoinStrings(const std::vector<std::string>& names) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we do this with
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated it but It looks like
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, I guess revert the change. Maybe sometime later this year we can adopt support for std::fmt |
||
| { | ||
| std::string result; | ||
| for (size_t i = 0; i < names.size(); ++i) | ||
| { | ||
| if (!names[i].empty()) | ||
| { | ||
| if (!result.empty()) | ||
| result += "."; | ||
| result += names[i]; | ||
| } | ||
| } | ||
| return result; | ||
| } | ||
boulderdaze marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| } // namespace micm | ||
Uh oh!
There was an error while loading. Please reload this page.