Epok Engine

EPOK RUNTIME

epok::utf8_scalar

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

One UTF-8 scalar from `text`, advancing `n` past it.

Belongs to
epok
Header
font_types.hpp
Overloads
1

Declaration

Declaration
inline uint32_t utf8_scalar(const char* text,size_t& n)

One UTF-8 scalar from `text`, advancing `n` past it.

ParameterTypeMeaning
textconst char *Not documented; consult the linked header.
nsize_t &Not documented; consult the linked header.

Returns: uint32_t. Consult the linked header for its meaning.

Example sketch

C++ example
#include "font_types.hpp"

// Assume these named values have been initialized with valid data:
// const char * text
// size_t & n

auto result = epok::utf8_scalar(text, n);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/font_types.hpp:24

Related members