sqlparser/file.cpp
// Split directory and file parts from a path
Split directory and file parts from a path
Split directory and file parts from a path
void File::SplitDirectoryAndFile(const char* path, std::string &dir, std::string &file)
{
	if(path == NULL)
		return;
	int pos = GetLastDirSeparatorPos(path);
	if(pos >= 0)
	{
		dir.assign(path, (size_t)pos);
		file.assign(path + pos + 1);
	}
	else
		file = path;
}
void File :: SplitDirectoryAndFile ( const char * path , std :: string & dir , std :: string & file ) { if ( path == NULL ) return ; int pos = GetLastDirSeparatorPos ( path ) ; if ( pos >= 0 ) { dir . assign ( path , ( size_t ) pos ) ; file . assign ( path + pos + 1 ) ; } else file = path ; }
Split directory and file parts from a path
Split directory and file parts from a path
// Split directory and file