15 pos = fileName.find_last_of(
'/');
16 if( pos!=string::npos && pos<fileName.size() )
18 path = fileName.substr(0, pos+1 );
25 std::string file( fileName );
27 pos = file.find_last_of(
'/');
28 while(pos!=string::npos)
32 file.replace( pos, 1,
"\\" );
34 pos = file.find_last_of(
'/');
36 pos = file.find_last_of(
'\\');
37 if( pos!=string::npos && pos<file.size() )
39 path = file.substr(0, pos+1 );
Header file for V-ART class "File".
static std::string GetPathFromString(const std::string &fileName)