MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / ExtractFilePath

Method ExtractFilePath

neo/idlib/Str.cpp:949–961  ·  view source on GitHub ↗

==================== idStr::ExtractFilePath ==================== */

Source from the content-addressed store, hash-verified

947====================
948*/
949void idStr::ExtractFilePath( idStr &dest ) const {
950 int pos;
951
952 //
953 // back up until a \ or the start
954 //
955 pos = Length();
956 while( ( pos > 0 ) && !isDirSeparator( ( *this )[ pos - 1 ] ) ) {
957 pos--;
958 }
959
960 Left( pos, dest );
961}
962
963/*
964====================

Callers 3

ConvertMayaToMD5Method · 0.80
ConvertMayaToMD5Method · 0.80

Calls 1

isDirSeparatorFunction · 0.85

Tested by

no test coverage detected