mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-03 06:05:27 +00:00
14 lines
349 B
C
14 lines
349 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
namespace PortabilityLayer
|
||
|
|
{
|
||
|
|
class UTF16Processor
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
static bool DecodeCodePoint(const uint16_t *characters, size_t availableCharacters, size_t &outCharactersDigested, uint32_t &outCodePoint);
|
||
|
|
static void EncodeCodePoint(uint16_t *characters, size_t &outCharactersEmitted, uint32_t codePoint);
|
||
|
|
};
|
||
|
|
}
|