mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-13 20:39:41 -07:00
update tests summary
This commit is contained in:
1 parent
31662822db
commit
49af8248ef
3 files changed
+67
-60
No files matched your search
@@ -536,6 +536,18 @@ str8_chop(String8 str, U64 amt)
|
||||
return str;
|
||||
}
|
||||
|
||||
internal String8
|
||||
str8_chop_line(String8 *str)
|
||||
{
|
||||
U64 new_line_pos = str8_find_needle(*str, 0, str8_lit("\n"), 0);
|
||||
String8 line = str8_prefix(*str, new_line_pos);
|
||||
if (str8_ends_with(line, str8_lit("\r"), 0)) {
|
||||
line = str8_chop(line, 1);
|
||||
}
|
||||
*str = str8_skip(*str, new_line_pos + 1);
|
||||
return line;
|
||||
}
|
||||
|
||||
internal String8
|
||||
str8_skip_chop_whitespace(String8 string)
|
||||
{
|
||||
|
||||
@@ -217,6 +217,7 @@ internal String8 str8_prefix(String8 str, U64 size);
|
||||
internal String8 str8_skip(String8 str, U64 amt);
|
||||
internal String8 str8_postfix(String8 str, U64 size);
|
||||
internal String8 str8_chop(String8 str, U64 amt);
|
||||
internal String8 str8_chop_line(String8 *str);
|
||||
internal String8 str8_skip_chop_whitespace(String8 string);
|
||||
internal String8 str8_skip_chop_slashes(String8 string);
|
||||
|
||||
|
||||
Reference in new issue
Block a user