Indented new line

This commit is contained in:
Krzosa Karol
2024-08-04 08:28:42 +02:00
parent e761761108
commit 2b5f441e92
6 changed files with 75 additions and 18 deletions

View File

@@ -207,3 +207,15 @@ String16 TrimEnd(String16 string) {
String16 result = GetPrefix(string, whitespace_end);
return result;
}
bool EndsWith(String16 a, String16 end, unsigned ignore_case = false) {
String16 a_end = GetPostfix(a, end.len);
bool result = AreEqual(end, a_end, ignore_case);
return result;
}
bool StartsWith(String16 a, String16 start, unsigned ignore_case = false) {
String16 a_start = GetPrefix(a, start.len);
bool result = AreEqual(start, a_start, ignore_case);
return result;
}