#include "PathUtil.h"
#include <boost/tokenizer.hpp>
void TokenizePath( const std::string &path, std::vector<std::string> &result )
{
typedef boost::char_separator<char> Separator;
typedef boost::tokenizer<Separator> Tokenizer;
Tokenizer tokenizer( path, Separator( "/" ) );
for ( Tokenizer::iterator iter = tokenizer.begin() ; iter != tokenizer.end() ;
++iter )
{
if ( (*iter).empty() ) { continue; }
result.push_back( *iter );
}
}