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:
Ryan Fleury
2024-08-12 17:06:59 -07:00
parent 86f45ce5e7
commit 057d4d485e
16 changed files with 658 additions and 580 deletions
+13
View File
@@ -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;
}
+1
View File
@@ -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