|
moddef-cpp
Idiomatic C++ runtime for ModDef
|
std::string_view <-> md_str_t bridging.
More...
#include <cstdint>#include <string_view>#include "moddef/str.h"Go to the source code of this file.
Namespaces | |
| namespace | moddef |
Functions | |
| md_str_t | moddef::to_c (std::string_view s) noexcept |
| std::string_view | moddef::from_c (md_str_t s) noexcept |
std::string_view <-> md_str_t bridging.
ModDef identifiers are length-delimited (not NUL-terminated) views into the document buffer, which maps exactly onto std::string_view — no copies, no allocation.