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

Function normalize_path

v2/engine/pathnt.c:204–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 */
203
204static void normalize_path( string * path )
205{
206 char * s;
207 for ( s = path->value; s < path->value + path->size; ++s )
208 *s = *s == '/' ? '\\' : tolower( *s );
209 /* Strip trailing "/". */
210 if ( path->size && path->size != 3 && path->value[ path->size - 1 ] == '\\'
211 )
212 string_pop_back( path );
213}
214
215
216static 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