statuses/destroyを叩くやつを反映した

また,CocoaTweet::Util::join()を使用するようにした
This commit is contained in:
keita
2021-02-18 18:38:01 +09:00
parent d6a277f8fe
commit 68d6d478c6
6 changed files with 47 additions and 18 deletions
+14 -2
View File
@@ -19,6 +19,18 @@ std::string urlEncode(const std::string& _str) {
return out.str();
}
template <typename T>
std::string join(const std::vector<T> _vec) {}
std::string join(const std::vector<std::string> _vec, const std::string& _delim) {
std::string str("");
for(auto v : _vec){
str += (v + _delim);
}
if(!str.empty()){
str.pop_back();
}
return str;
}
} // namespace CocoaTweet::Util