aboutsummaryrefslogtreecommitdiff
path: root/src/system/Utf8.cpp
blob: a41647717e854d8e29733b1a10978c0cf3b160b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "../../include/mglpp/system/Utf8.hpp"

extern "C" {
#include <mgl/system/utf8.h>
}

namespace mgl {
    bool utf8_decode(const unsigned char *str, size_t size, uint32_t *decoded_codepoint, size_t *codepoint_length) {
        return mgl_utf8_decode(str, size, decoded_codepoint, codepoint_length);
    }

    size_t utf8_get_start_of_codepoint(const unsigned char *str, size_t size, size_t offset) {
        return mgl_utf8_get_start_of_codepoint(str, size, offset);
    }
}