Improve bodge for android execute build

This commit is contained in:
gingerBill
2025-03-26 17:45:04 +00:00
parent 45ecafd7b1
commit eee450516e
2 changed files with 14 additions and 3 deletions

View File

@@ -273,6 +273,15 @@ gb_internal String path_extension(String const &str, bool include_dot = true) {
return substring(str, include_dot ? pos : pos + 1, str.len);
}
gb_internal String path_remove_extension(String const &str) {
isize pos = string_extension_position(str);
if (pos < 0) {
return str;
}
return substring(str, 0, pos);
}
gb_internal String string_trim_whitespace(String str) {
while (str.len > 0 && rune_is_whitespace(str[str.len-1])) {
str.len--;