update delim chars
This commit is contained in:
parent
a9fce74e63
commit
eef072234e
@ -47,8 +47,6 @@ class RasterGrid
|
|||||||
public:
|
public:
|
||||||
RasterGrid(const boost::filesystem::path &filepath, std::size_t _xdim, std::size_t _ydim)
|
RasterGrid(const boost::filesystem::path &filepath, std::size_t _xdim, std::size_t _ydim)
|
||||||
{
|
{
|
||||||
util::Log() << " filepath : " << filepath;
|
|
||||||
|
|
||||||
xdim = _xdim;
|
xdim = _xdim;
|
||||||
ydim = _ydim;
|
ydim = _ydim;
|
||||||
_data.reserve(ydim * xdim);
|
_data.reserve(ydim * xdim);
|
||||||
@ -66,7 +64,7 @@ class RasterGrid
|
|||||||
boost::algorithm::trim(buf);
|
boost::algorithm::trim(buf);
|
||||||
|
|
||||||
std::vector<std::string> result;
|
std::vector<std::string> result;
|
||||||
std::string delim (" ");
|
std::string delim (" \r\n\0");
|
||||||
boost::split(result, buf, boost::is_any_of(delim), boost::algorithm::token_compress_on);
|
boost::split(result, buf, boost::is_any_of(delim), boost::algorithm::token_compress_on);
|
||||||
//boost::split(result, buf, boost::is_any_of(delim));
|
//boost::split(result, buf, boost::is_any_of(delim));
|
||||||
unsigned int x = 0;
|
unsigned int x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user