MCPcopy Create free account
hub / github.com/carbonengine/trinity / FindSlash

Function FindSlash

trinityal/tests/WithValidRenderContextFixture.cpp:244–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244size_t FindSlash( const std::string& path, size_t offset )
245{
246 auto pos1 = path.find( '/', offset );
247 auto pos2 = path.find( '\\', offset );
248 if( pos1 != std::string::npos )
249 {
250 if( pos2 != std::string::npos )
251 {
252 return std::min( pos1, pos2 );
253 }
254 return pos1;
255 }
256 return pos2;
257}
258
259#ifdef _MSC_VER
260#define mkdir( path ) _mkdir( path )

Callers 1

MkDirsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected