further progress/fixes on pdb -> rdi determinism

This commit is contained in:
Ryan Fleury
2025-09-05 15:19:29 -07:00
parent 27d4793900
commit 27f2acd45d
8 changed files with 335 additions and 452 deletions
+19 -4
View File
@@ -367,10 +367,25 @@ str8_find_needle_reverse(String8 string, U64 start_pos, String8 needle, StringMa
}
internal B32
str8_ends_with(String8 string, String8 end, StringMatchFlags flags){
String8 postfix = str8_postfix(string, end.size);
B32 is_match = str8_match(end, postfix, flags);
return is_match;
str8_is_before(String8 a, String8 b)
{
B32 result = 0;
{
U64 common_size = Min(a.size, b.size);
for(U64 off = 0; off < common_size; off += 1)
{
if(a.str[off] < b.str[off])
{
result = 1;
break;
}
if(off+1 == common_size)
{
result = (a.size < b.size);
}
}
}
return result;
}
////////////////////////////////
+2
View File
@@ -205,6 +205,8 @@ internal String8 backslashed_from_str8(Arena *arena, String8 string);
internal B32 str8_match(String8 a, String8 b, StringMatchFlags flags);
internal U64 str8_find_needle(String8 string, U64 start_pos, String8 needle, StringMatchFlags flags);
internal U64 str8_find_needle_reverse(String8 string, U64 start_pos, String8 needle, StringMatchFlags flags);
internal B32 str8_is_before(String8 a, String8 b);
#define str8_ends_with(string, end, flags) str8_match(str8_postfix((string), (end).size), (end), (flags))
////////////////////////////////
//~ rjf: String Slicing