if(*X == '/' ) *X =  ':';
name.replace(pos, 3, 1, ':' ); pos = name.find(c_up_dir, pos); }  pos = name.find(c_cur_dir); while( pos != string::npos ) { name.erase(pos, 2); pos = name.find(c_cur_dir, pos); }  pos = name.find('/'); while( pos != string::npos ) { name.at(pos) = ':'; pos = name.find('/', pos);
static void switch_slashes(	string & name	){#ifdef WIN32	for(string::iterator X = name.begin(); X != name.end(); ++X)	{		if(*X == '/' )			*X =  '\\';	}#elif defined(MACOS)	name = ":" + name;	for(string::iterator X = name.begin(); X != name.end(); ++X)	{		if(*X == '/' )			*X =  ':';	}#else	// do nothing#endif}