mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-11-03 22:04:24 +00:00 
			
		
		
		
	
							parent
							
								
									27ddce4cd6
								
							
						
					
					
						commit
						6fb1798692
					
				@ -224,9 +224,9 @@ void EnsureEndsInSlash(std::string& path) {
 | 
			
		||||
std::string EscapeFileName(std::string path) {
 | 
			
		||||
  if (path.size() && path.back() == '/')
 | 
			
		||||
    path.pop_back();
 | 
			
		||||
  std::replace(path.begin(), path.end(), '\\', '_');
 | 
			
		||||
  std::replace(path.begin(), path.end(), '/', '_');
 | 
			
		||||
  std::replace(path.begin(), path.end(), ':', '_');
 | 
			
		||||
  std::replace(path.begin(), path.end(), '\\', '@');
 | 
			
		||||
  std::replace(path.begin(), path.end(), '/', '@');
 | 
			
		||||
  std::replace(path.begin(), path.end(), ':', '@');
 | 
			
		||||
  return path;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user