mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-12-02 13:28:59 +00:00
commit
ec238549d0
@ -332,9 +332,9 @@ std::string VCardUtils::TrimListToString(const std::vector<std::string> &strs)
|
||||
int32_t size = static_cast<int32_t>(strs.size());
|
||||
std::string result;
|
||||
if (size > 1) {
|
||||
std::string init = strs[VALUE_INDEX_ZERO];
|
||||
std::string init = "";
|
||||
result = std::accumulate(strs.begin(), strs.end(), init,
|
||||
[](std::string &str, const std::string &element) { return str + ";" + element; });
|
||||
[](std::string &str, const std::string &element) { return str + element + ";"; });
|
||||
} else if (size == 1) {
|
||||
return strs[0];
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user