Get compiling on arch.

This commit is contained in:
jmsgrogan 2023-09-24 12:33:38 +01:00
parent 22c552b50f
commit 7da1d2d539
7 changed files with 13 additions and 9 deletions

View file

@ -3,6 +3,7 @@
#include <vector>
#include <string>
#include <optional>
#include <cstdint>
class PrefixCode
{

View file

@ -4,6 +4,7 @@
#include <vector>
#include <stdexcept>
#include <cstdint>
std::string UnicodeUtils::utf16ToUtf8String(const std::wstring& input)
{
@ -88,4 +89,4 @@ bool UnicodeUtils::isLowSurrogate(wchar_t c)
uint32_t UnicodeUtils::surrogateToUtf32(wchar_t high, wchar_t low)
{
return (high << 10) + low - 0x35fdc00;
}
}

View file

@ -2,6 +2,7 @@
#include <string>
#include <vector>
#include <cstdint>
class UnicodeUtils
{
@ -17,4 +18,4 @@ private:
static bool isHighSurrogate(wchar_t c);
static bool isLowSurrogate(wchar_t c);
static uint32_t surrogateToUtf32(wchar_t high, wchar_t low);
};
};