| 217 | */ |
| 218 | |
| 219 | static 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 | |
| 231 | static path_key_entry * path_key( OBJECT * const path, |
no test coverage detected