replace a few string algorithms with boost utilities

This commit is contained in:
Andrzej Rybczak
2012-10-04 22:33:17 +02:00
parent 5908250c18
commit 8db773cfec
28 changed files with 138 additions and 198 deletions

View File

@@ -21,8 +21,8 @@
#ifndef NCMPCPP_STRBUFFER_H
#define NCMPCPP_STRBUFFER_H
#include <boost/lexical_cast.hpp>
#include <set>
#include "utility/numeric_conversions.h"
#include "window.h"
namespace NC {//
@@ -130,25 +130,25 @@ public:
BasicBuffer<CharT> &operator<<(int n)
{
m_string += intTo<StringType>::apply(n);
m_string += boost::lexical_cast<StringType>(n);
return *this;
}
BasicBuffer<CharT> &operator<<(long int n)
{
m_string += longIntTo<StringType>::apply(n);
m_string += boost::lexical_cast<StringType>(n);
return *this;
}
BasicBuffer<CharT> &operator<<(unsigned int n)
{
m_string += unsignedIntTo<StringType>::apply(n);
m_string += boost::lexical_cast<StringType>(n);
return *this;
}
BasicBuffer<CharT> &operator<<(unsigned long int n)
{
m_string += unsignedLongIntTo<StringType>::apply(n);
m_string += boost::lexical_cast<StringType>(n);
return *this;
}