Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/cpp/encoding/Utf16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ namespace cpp
static bool isEncoded(const String& string);

static int getByteCount(const null&);
static int getByteCount(const char32_t& codepoint);
static int getByteCount(char32_t codepoint);
static int64_t getByteCount(const String& string);

static int getCharCount(const null&);
static int getCharCount(const char32_t& codepoint);
static int getCharCount(char32_t codepoint);
static int64_t getCharCount(const String& string);

static int encode(const null&, const cpp::marshal::View<uint8_t>& buffer);
static int encode(const char32_t& codepoint, const cpp::marshal::View<uint8_t>& buffer);
static int encode(char32_t codepoint, const cpp::marshal::View<uint8_t>& buffer);
static int64_t encode(const String& string, const cpp::marshal::View<uint8_t>& buffer);

static char32_t codepoint(const cpp::marshal::View<uint8_t>& buffer);
Expand Down
7 changes: 4 additions & 3 deletions include/cpp/encoding/Utf8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ namespace cpp
struct Utf8 final
{
static int getByteCount(const null&);
static int getByteCount(const char32_t& codepoint);
static int getByteCount(char32_t codepoint);
static int64_t getByteCount(const String& string);

static int getCharCount(const null&);
static int getCharCount(const char32_t& codepoint);
static int getCharCount(char32_t codepoint);
static int64_t getCharCount(const String& string);

static int encode(const null&, const cpp::marshal::View<uint8_t>& buffer);
static int encode(const char32_t& codepoint, const cpp::marshal::View<uint8_t>& buffer);
static int encode(char32_t codepoint, const cpp::marshal::View<uint8_t>& buffer);
static int64_t encode(const String& string, const cpp::marshal::View<uint8_t>& buffer);
static Array<uint8_t> encode(const String& string);

static char32_t codepoint(const cpp::marshal::View<uint8_t>& buffer);
static String decode(const cpp::marshal::View<uint8_t>& buffer);
Expand Down
66 changes: 0 additions & 66 deletions src/cpp/encoding/Ascii.cpp

This file was deleted.

Loading
Loading