mark some functions private

This commit is contained in:
Josh Holtrop 2020-11-27 19:54:52 -05:00
parent b0adb417a0
commit 575589e5a3

View File

@ -64,7 +64,7 @@ struct Encoding
return Encoding(CP1252);
}
static bool check_utf8_continuation_bytes(const ubyte * data, size_t n)
private static bool check_utf8_continuation_bytes(const ubyte * data, size_t n)
{
for (size_t i = 0u; i < n; i++)
{
@ -74,7 +74,7 @@ struct Encoding
return true;
}
static bool validate_utf8(const ubyte * data, size_t n)
private static bool validate_utf8(const ubyte * data, size_t n)
{
for (size_t i = 0u; i < n; i++)
{
@ -121,7 +121,7 @@ struct Encoding
return true;
}
static bool check_utf16(const ubyte * data, size_t n, bool le)
private static bool check_utf16(const ubyte * data, size_t n, bool le)
{
size_t n_high_zeros;
if ((n == 0u) || ((n & 1u) != 0u))