Indented new line
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user