mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-04 12:20:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			343 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			343 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <scwx/util/strings.hpp>
 | 
						|
 | 
						|
namespace scwx
 | 
						|
{
 | 
						|
namespace util
 | 
						|
{
 | 
						|
 | 
						|
std::string ToString(const std::vector<std::string>& v)
 | 
						|
{
 | 
						|
   std::string value {};
 | 
						|
 | 
						|
   for (const std::string& s : v)
 | 
						|
   {
 | 
						|
      if (!value.empty())
 | 
						|
      {
 | 
						|
         value += ", ";
 | 
						|
      }
 | 
						|
 | 
						|
      value += s;
 | 
						|
   }
 | 
						|
 | 
						|
   return value;
 | 
						|
}
 | 
						|
 | 
						|
} // namespace util
 | 
						|
} // namespace scwx
 |