MCPcopy Create free account
hub / github.com/boostorg/build / normalize_path

Function normalize_path

src/engine/pathnt.cpp:219–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 */
218
219static void normalize_path( string * path )
220{
221 char * s;
222 for ( s = path->value; s < path->value + path->size; ++s )
223 *s = *s == '/' ? '\\' : tolower( *s );
224 /* Strip trailing "/". */
225 if ( path->size && path->size != 3 && path->value[ path->size - 1 ] == '\\'
226 )
227 string_pop_back( path );
228}
229
230
231static path_key_entry * path_key( OBJECT * const path,

Callers 1

path_keyFunction · 0.85

Calls 1

string_pop_backFunction · 0.85

Tested by

no test coverage detected