コードヲチョットソウジシタ
This commit is contained in:
@@ -20,17 +20,16 @@ std::string urlEncode(const std::string& _str) {
|
||||
}
|
||||
|
||||
std::string join(const std::vector<std::string> _vec, const std::string& _delim) {
|
||||
std::string str("");
|
||||
std::string str("");
|
||||
|
||||
for(auto v : _vec){
|
||||
str += (v + _delim);
|
||||
}
|
||||
for (auto v : _vec) {
|
||||
str += (v + _delim);
|
||||
}
|
||||
|
||||
if(!str.empty()){
|
||||
str.pop_back();
|
||||
}
|
||||
|
||||
return str;
|
||||
if (!str.empty()) {
|
||||
str.pop_back();
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
} // namespace CocoaTweet::Util
|
||||
|
||||
Reference in New Issue
Block a user