util/WStringUtil: fix indent
This commit is contained in:
@@ -29,17 +29,17 @@
|
|||||||
bool
|
bool
|
||||||
StringStartsWith(const wchar_t *haystack, const wchar_t *needle)
|
StringStartsWith(const wchar_t *haystack, const wchar_t *needle)
|
||||||
{
|
{
|
||||||
return memcmp(haystack, needle, StringLength(needle) * sizeof(needle[0])) == 0;
|
return memcmp(haystack, needle, StringLength(needle) * sizeof(needle[0])) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
StringEndsWith(const wchar_t *haystack, const wchar_t *needle)
|
StringEndsWith(const wchar_t *haystack, const wchar_t *needle)
|
||||||
{
|
{
|
||||||
const size_t haystack_length = StringLength(haystack);
|
const size_t haystack_length = StringLength(haystack);
|
||||||
const size_t needle_length = StringLength(needle);
|
const size_t needle_length = StringLength(needle);
|
||||||
|
|
||||||
return haystack_length >= needle_length &&
|
return haystack_length >= needle_length &&
|
||||||
StringIsEqual(haystack + haystack_length - needle_length, needle);
|
StringIsEqual(haystack + haystack_length - needle_length, needle);
|
||||||
}
|
}
|
||||||
|
|
||||||
const wchar_t *
|
const wchar_t *
|
||||||
|
Reference in New Issue
Block a user