Remove utf8_is_bom()

This commit is contained in:
Gymnasiast committed 2022-01-24 23:12:08 +01:00
1 parent 4192fc5cc8
commit 0a46a960de
2 files changed
-7

No files matched your search

-6
View File
@@ -533,12 +533,6 @@ char* strcasestr(const char* haystack, const char* needle)
}
#endif
bool utf8_is_bom(const char* str)
{
return str[0] == static_cast<char>(static_cast<uint8_t>(0xEF)) && str[1] == static_cast<char>(static_cast<uint8_t>(0xBB))
&& str[2] == static_cast<char>(static_cast<uint8_t>(0xBF));
}
bool str_is_null_or_empty(const char* str)
{
return str == nullptr || str[0] == 0;
-1
View File
@@ -49,7 +49,6 @@ char* safe_strcat_path(char* destination, const char* source, size_t size);
char* strcasestr(const char* haystack, const char* needle);
#endif
bool utf8_is_bom(const char* str);
bool str_is_null_or_empty(const char* str);
uint32_t util_rand();