mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-02 22:18:42 +00:00
update tests summary
This commit is contained in:
committed by
Ryan Fleury
parent
31662822db
commit
49af8248ef
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user