Fix "browser" map resolution, _almost_ fix symbol collisions, cache absolute paths for file entries

This commit is contained in:
Jarred Sumner
2021-09-12 23:40:12 -07:00
parent dca47a565e
commit 359df89fe3
13 changed files with 735 additions and 463 deletions

View File

@@ -206,6 +206,10 @@ pub inline fn endsWith(self: string, str: string) bool {
return str.len == 0 or @call(.{ .modifier = .always_inline }, std.mem.endsWith, .{ u8, self, str });
}
pub inline fn endsWithChar(self: string, char: u8) bool {
return self.len == 0 or self[self.len - 1] == char;
}
pub fn endsWithAny(self: string, str: string) bool {
const end = self[self.len - 1];
for (str) |char| {