MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / translate_slashes

Function translate_slashes

src/common/isc_file.cpp:605–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603#ifdef WIN_NT
604
605static void translate_slashes(tstring& Path)
606{
607 const char sep = '\\';
608 const char bad_sep = '/';
609 for (char *p = Path.begin(), *q = Path.end(); p < q; p++)
610 {
611 if (*p == bad_sep) {
612 *p = sep;
613 }
614 }
615}
616
617
618static bool isDriveLetter(const tstring::char_type letter)

Callers 2

ShortToLongPathNameFunction · 0.85
ISC_expand_filenameFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected