Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix

This commit is contained in:
vogel76 2013-12-25 20:22:09 +01:00
commit 8b29f9dee0
2 changed files with 8 additions and 1 deletions

View file

@ -19,6 +19,7 @@ namespace fc
typedef fc::optional<fc::string> ostring;
class variant_object;
fc::string format_string( const fc::string&, const variant_object& );
fc::string trim( const fc::string& );
}
#else

View file

@ -2,6 +2,7 @@
#include <fc/utility.hpp>
#include <fc/fwd_impl.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <string>
@ -97,7 +98,12 @@ namespace fc {
{
return boost::lexical_cast<std::string>(d);
}
std::string trim( const std::string& s )
{
std::string cpy(s);
boost::algorithm::trim(cpy);
return cpy;
}
} // namespace fc