move string utils in namespace utils::string

This commit is contained in:
badaix 2017-06-05 12:48:59 +02:00
parent b8f69ce58f
commit fa3f78b08d
12 changed files with 178 additions and 133 deletions

View file

@ -22,6 +22,7 @@
#include <fcntl.h>
#include "processStream.h"
#include "common/snapException.h"
#include "common/utils/string_utils.h"
#include "common/utils.h"
#include "common/log.h"
@ -120,7 +121,7 @@ void ProcessStream::onStderrMsg(const char* buffer, size_t n)
{
if (logStderr_)
{
string line = trim_copy(string(buffer, n));
string line = utils::string::trim_copy(string(buffer, n));
if ((line.find('\0') == string::npos) && !line.empty())
logO << "(" << getName() << ") " << line << "\n";
}