progress on per-view searching operation - will be specialized & used for replacements for finding text, for going to line/address, and filtering in query views

This commit is contained in:
Ryan Fleury committed 2025-02-19 11:33:16 -08:00
1 parent f87dd1be82
commit a8f72dd5f1
10 files changed
+386 -342

No files matched your search

+2 -1
View File
@@ -552,7 +552,8 @@ os_properties_from_file_path(String8 path)
Temp scratch = scratch_begin(0, 0);
WCHAR buffer[512] = {0};
DWORD length = GetLogicalDriveStringsW(sizeof(buffer), buffer);
U64 last_slash_pos = str8_find_needle(path, 0, str8_lit("/"), StringMatchFlag_SlashInsensitive);
U64 last_slash_pos = 0;
for(;last_slash_pos < path.size; last_slash_pos = str8_find_needle(path, last_slash_pos+1, str8_lit("/"), StringMatchFlag_SlashInsensitive));
String8 path_trimmed = str8_prefix(path, last_slash_pos);
for(U64 off = 0; off < (U64)length;)
{