TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_utf8.h File Reference
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  tachyon

Functions

uint32_t tachyon::NextUtf8Codepoint (std::string_view text, size_t &i)
 The codepoint starting at text[i], with i moved past it.
void tachyon::AppendUtf8 (std::string &out, uint32_t codepoint)
std::string tachyon::ToValidUtf8 (std::string_view text)
 Text with each malformed byte replaced by U+FFFD (the replacement character).
size_t tachyon::LastUtf8CodepointSize (std::string_view text)
 The byte length of text's last codepoint (0 when empty).

Variables

constexpr uint32_t tachyon::kInvalidCodepoint = 0xFFFFFFFFu