mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-21 23:12:01 -07:00
begin entity simplification pass; begin eliminating frontend file system entity cache; build new path-based file override systems, instead of relying on the entity tree
This commit is contained in:
@@ -163,3 +163,16 @@ path_normalized_from_string(Arena *arena, String8 path_string){
|
||||
return(result);
|
||||
}
|
||||
|
||||
internal B32
|
||||
path_match_normalized(String8 left, String8 right)
|
||||
{
|
||||
B32 result = 0;
|
||||
{
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
String8 left_normalized = path_normalized_from_string(scratch.arena, left);
|
||||
String8 right_normalized = path_normalized_from_string(scratch.arena, right);
|
||||
result = str8_match(left_normalized, right_normalized, StringMatchFlag_CaseInsensitive);
|
||||
scratch_end(scratch);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -12,5 +12,6 @@ internal String8 path_relative_dst_from_absolute_dst_src(Arena *arena, String8 d
|
||||
internal String8 path_absolute_dst_from_relative_dst_src(Arena *arena, String8 dst, String8 src);
|
||||
internal String8List path_normalized_list_from_string(Arena *arena, String8 path, PathStyle *style_out);
|
||||
internal String8 path_normalized_from_string(Arena *arena, String8 path);
|
||||
internal B32 path_match_normalized(String8 left, String8 right);
|
||||
|
||||
#endif //PATH_H
|
||||
|
||||
Reference in New Issue
Block a user