std::string Path_Join( const std::string & first, const std::string & second, const std::string & third, const std::string &fourth, char slash )
{
	return Path_Join( Path_Join( Path_Join( first, second, slash ), third, slash ), fourth, slash );
}
Exemplo n.º 2
0
TEST( PathTools, Join )
{
	EXPECT_STREQ( "dir/file.txt", Path_Join( "dir", "file.txt", '/' ).c_str() );
	EXPECT_STREQ( "dir/file.txt", Path_Join( "dir/", "file.txt", '/' ).c_str() );
}