aboutsummaryrefslogtreecommitdiff
path: root/src/SMemUtf8.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2025-06-02 20:28:39 +0200
committerLadislav Zezula <zezula@volny.cz>2025-06-02 20:28:39 +0200
commit630de2ee1925d1d1b9bf1404e189a5a319ee3c1e (patch)
treee8c394394c8c4cd19f8989967c6b36f7dc0f844e /src/SMemUtf8.cpp
parent0ce73c5b464cb438f9faae69c5a8305241898b54 (diff)
Fixed bug in test program that caused bad cosmetic effects during log print
Diffstat (limited to 'src/SMemUtf8.cpp')
-rw-r--r--src/SMemUtf8.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMemUtf8.cpp b/src/SMemUtf8.cpp
index 5832422..7f03e77 100644
--- a/src/SMemUtf8.cpp
+++ b/src/SMemUtf8.cpp
@@ -92,7 +92,7 @@ static DWORD UTF8_DecodeSequence(const BYTE * pbString, BYTE BitsMask, size_t cc
}
// https://en.wikipedia.org/wiki/UTF-8
-static DWORD UTF8_DecodeCodePoint(const BYTE * pbString, const BYTE * pbStringEnd, DWORD & dwCodePoint, size_t & ccBytesEaten)
+DWORD UTF8_DecodeCodePoint(const BYTE * pbString, const BYTE * pbStringEnd, DWORD & dwCodePoint, size_t & ccBytesEaten)
{
// Reset the number of bytes eaten
dwCodePoint = SFILE_UTF8_INVALID_CHARACTER;
@@ -165,7 +165,7 @@ static size_t UTF8_EncodeSequence(DWORD dwCodePoint, BYTE LeadingByte, DWORD dwF
return dwFollowByteCount + 1;
}
-static size_t UTF8_EncodeCodePoint(DWORD dwCodePoint, LPBYTE Utf8Buffer)
+size_t UTF8_EncodeCodePoint(DWORD dwCodePoint, LPBYTE Utf8Buffer)
{
// 0x00 - 0x7F, 1 byte
if(dwCodePoint < 0x80)