#include <windows.h>
#include <msp/core/systemerror.h>
#include <msp/io/handle_private.h>
+#include <msp/strings/utils.h>
#include "process.h"
#include "process_private.h"
{
string cmdline = quote_argument(command);
for(Arguments::const_iterator i=args.begin(); i!=args.end(); ++i)
- {
- cmdline += ' ';
- cmdline += quote_argument(*i);
- }
+ append(cmdline, " ", quote_argument(*i));
STARTUPINFO startup;
startup.cb = sizeof(STARTUPINFO);
#include <msp/strings/format.h>
+#include <msp/strings/utils.h>
#include "except.h"
using namespace std;
{
string result;
for(string::const_iterator i=begin; i!=end; ++i)
- {
- if(!result.empty())
- result += ' ';
- result += lexical_cast<string>(static_cast<unsigned char>(*i), Fmt().fill('0').width(2).hex().uppercase());
- }
+ append(result, " ", lexical_cast<string>(static_cast<unsigned char>(*i), Fmt().fill('0').width(2).hex().uppercase()));
return result;
}